Home › Forums › Ticket Products › Eventbrite Tickets › Additional Editing in WP of Eventbrite Event (Part 2)
- This topic has 3 replies, 2 voices, and was last updated 8 years, 8 months ago by Josh.
-
AuthorPosts
-
July 24, 2015 at 6:57 pm #990193BrandonParticipant
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!
July 27, 2015 at 6:49 am #990468JoshParticipantHey 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 );
\
July 27, 2015 at 6:55 am #990473BrandonParticipantThis updated snippet worked. Thanks.
- This reply was modified 8 years, 8 months ago by Brandon.
July 28, 2015 at 7:27 am #991024JoshParticipantHey 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!
-
AuthorPosts
- The topic ‘Additional Editing in WP of Eventbrite Event (Part 2)’ is closed to new replies.