Pass argument to event hook
I would suggest first read the wordpress documentation about actions to understand how they work. Actions are aplit into two section, add_action and do_action do_action is the “location” where you hook into it. A basic example of do_action do_action(‘my_custom_action’); You can also pass arguments into do_action which can be available in add_action if you choose … Read more