Additional Editing in WP of Eventbrite Event (Part 2)

Home Forums Ticket Products Eventbrite Tickets Additional Editing in WP of Eventbrite Event (Part 2)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #990193
    Brandon
    Participant

    This is a continuation of this discussion which is now closed to new replies.

    I need the ability to import Eventbrite events then do additional edits within WP without updating back to Eventbrite. The fix that was suggested in the discussion linked above was working for me. I would do an import from Eventbrite, then I could make any changes I wanted to make to the description within WP; save; and Eventbrite was not updated (which is what I want).

    I just updated all my Events Calendar plugins from <3.10 to the latest versions (3.11.1). This update has “broken” the fix that was in place. I just did an import from Eventbrite; updated the description within WP; save; the new description was saved to my Eventbrite event (which I DO NOT want).

    This is the code that is in my custom functions which was working before I updated the plugins…

    /*
    This function disables syncing from Events Calendar PRO to Eventbrite.
    */
    function inhibit_communication_with_eventbrite() {
        // Do nothing if Eventbrite Tickets is not activated
        if ( ! class_exists( 'Event_Tickets_PRO' ) ) return;
     
        // Remove update callback
        $callback = array( Event_Tickets_PRO::instance(), 'eventbrite_details' );
        remove_action( 'tribe_events_update_meta', $callback, 20 );
    }
    add_action( 'wp_loaded', 'inhibit_communication_with_eventbrite', 100 );

    Please advise. Thanks!

    #990468
    Josh
    Participant

    Hey Brandon,

    Thanks for reaching out to us!

    Here is an updated version of that snippet that should work with the latest version of our plugin to prevent the information from continuing to sync between your WordPress install and Eventbrite:

    \

    /*
    This function disables syncing from Events Calendar PRO to Eventbrite.
    */
    function inhibit_communication_with_eventbrite() {
        // Do nothing if Eventbrite Tickets is not activated
        if ( ! class_exists( 'Tribe__Events__Tickets__Eventbrite__Main' ) ) return;
     
        // Remove update callback
        $callback = array( Tribe__Events__Tickets__Eventbrite__Main::instance(), 'action_sync_event' );
        remove_action( 'tribe_events_update_meta', $callback, 20 );
    }
    add_action( 'wp_loaded', 'inhibit_communication_with_eventbrite', 100 );

    \

    #990473
    Brandon
    Participant

    This updated snippet worked. Thanks.

    • This reply was modified 10 years, 8 months ago by Brandon.
    #991024
    Josh
    Participant

    Hey Brandon,

    No problem! happy to help.

    I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new thread.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Additional Editing in WP of Eventbrite Event (Part 2)’ is closed to new replies.