Archived topic
Conditional Hooks
1 reply · Started by Craig on June 4, 2016
I love your implementation of hooks with the add-on, however, it'd be awesome if you took it a step further to have 'conditionals'.
That'd make it easier to have a hook only take action on specific pages/categories/tags/etc. without having to construct the conditional statements.
Something similar to this: https://beavertunnels.com/features/
Keep up the great work!
Would be quite cool, but not really possible to apply to the hook. What if you wanted to use the one hook for multiple conditions?
Instead, you can use WordPress conditionals inside the hook itself: https://codex.wordpress.org/Conditional_Tags
Makes it pretty powerful :)
