Is there a function similar to Woocommerce "is_shop()"

Home Forums Calendar Products Events Calendar PRO Is there a function similar to Woocommerce "is_shop()"

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #736604
    chriswerstiuk
    Participant

    I want to add a conditional function to my functions.php that will display a widget area if an events page is currently selected. I use the woocommerce is_shop() function for all woocommerce pages. Is there a similar function in the events plugin?

    #737776
    Josh
    Participant

    Hello chriswerstiuk,

    Thanks for reaching out to us!

    You should be able to use the “tribe_is_event_query()” function as a conditional very similar to is_shop() to check whether or not the current page is part of the Events Calendar.

    Let me know if this works for what you’re trying to do.

    Thanks!

    #738519
    chriswerstiuk
    Participant

    Worked perfectly. Thanks

    #740797
    Josh
    Participant

    Hello chriswerstiuk,

    Awesome! Happy to be able to help!

    If you have a few moments, we would definitely appreciate it if you took a second to rate our plugin on the WordPress.org repository.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Is there a function similar to Woocommerce "is_shop()"’ is closed to new replies.