using add_action for a header hook that has an additional parameter
How can I pass ‘right’ parameter into add_action? In short: You don’t pass ‘left’ or ‘right’ itself to add_action(), but you can make the parameter be available in your callback by using the fourth parameter for add_action(). See examples below. So despite you may already know this, a hook is a specific place in a … Read more