So here's the thing,
i was put on a project made by some guy from the internet.
the thing is he used some procedural programing so basically he made functions in functions.php.
now for some reason these functions run as they wish althought they are summoned on specific templates.
So i made some hooks for them, the problem is something is blocking the do_Action from running.
Has anyone else had problems on running hooks on specific times? or do i have some server error?
Thanks
do_action is kind of defining new hooks.
add_action actually runs the hooked functions from either a set of prefined hooks (init, wp_head, etc.) or the ones you defined in do_action.
You should share some code. But I believe you want to use add_action and not do_action.
https://developer.wordpress.org/reference/functions/add_action/