Solution:
add_action
and remove_action
do not need any configuration.
You need to find the right action hook for your purpose, and anywhere in functions.php, just write add_action('the_hook_you_want', 'the_function_you_want_to_call')
.
It also takes 2 other arguments, the first one is the number of arguments the_function_you_want_to_call
takes in, and the second is the priority, you can leave that at 10
.
I almost never used remove_action
, since you probably want to do more, and not prevent wordpress from doing what it does.
If you are not sure of what hook to use, you can look for all the do_action()
in your wordpress code.
Could you post some code and explain what exactly you are trying please ?