Passing Parameters to Functions via Action Hooks

If you are using WordPress action hooks and want to pass some parameters to the function being called, this is the way to do it:

For example:

If you enjoyed this post, make sure to subscribe to WP Mayor’s RSS feed.

About Jean Galea

Jean Galea is a WordPress developer, entrepreneur and padel player. He is the founder of WP Mayor, the plugins WP RSS Aggregator and EDD Bookings, as well as the Mastermind.fm podcast. His personal blog can be found at jeangalea.com.

Related Articles

Leave a Reply