Created
March 1, 2014 04:21
-
-
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+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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