Create a plugin to change the action to which a function is hooked
You can use the remove_action() function to unhook a function from an action and then add_action() to hook it elsewhere. Note that when removing an action you must specify the tag (hook name), function, and priority exactly as it was added. Edit: Here are some additional details: You’ll have to look at the source of … Read more