Skip to content

Instantly share code, notes, and snippets.

@jazbek
Created March 1, 2014 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jazbek/9285111 to your computer and use it in GitHub Desktop.
Save jazbek/9285111 to your computer and use it in GitHub Desktop.
Customize the organizer info that's sent to Eventbrite - only works with Eventbrite Tickets v 3.5+
<?php
add_filter('tribe_events_eb_request', 'tribe_fix_eb_organizer_website', 10, 3);
function tribe_fix_eb_organizer_website( $request, $action, $params ){
if ( strpos( $action, 'organizer' ) !== false ) {
$params_array = array();
parse_str( $params, $params_array );
if ( $params_array['name'] == 'My Organizer' ) { // replace 'My Organizer' with the name of your organizer
$params_array['description'] = 'Put what you want in the organizer description here'; // customize this text
}
$request = str_replace( $params, _http_build_query( $params_array ), $request );
}
return $request;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment