Home Forums Support Conditional Hooks

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #199470
    Craig

    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!

    #199487
    Tom
    Lead Developer
    Lead Developer

    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 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.