Fatal error: Uncaught Error: Class 'TribeEventsPro' not found

Home Forums Calendar Products Events Calendar PRO Fatal error: Uncaught Error: Class 'TribeEventsPro' not found

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1298502
    Brent Kozlowski
    Participant

    I have the following function to remove related events, but with the newest update it is causing a fatal error?

    add_action( 'init', 'remove_related_events' );
    function remove_related_events() {
        $callback = array( TribeEventsPro::instance(), 'register_related_events_view' );
        remove_action( 'tribe_events_single_event_after_the_meta', $callback );
    }
    #1298855
    Cliff
    Member

    Hi. I suggest you remove that code snippet entirely and instead go to wp-admin > Events > Settings > Display tab > check the “Hide related events” box.

    I hope that’s easy and works well for you! 🙂

    #1317462
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Uncaught Error: Class 'TribeEventsPro' not found’ is closed to new replies.