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 | |
| function msec_email_by_session_id($session_id, $send_attendee_email = TRUE, $send_admin_email = TRUE, $multi_reg = FALSE) { | |
| global $wpdb; | |
| $sql = "SELECT id FROM " . EVENTS_ATTENDEE_TABLE . " WHERE attendee_session = %s"; | |
| $attendees = $wpdb->get_col( $wpdb->prepare( $sql, $session_id )); | |
| $admin_email_params = array('email_body'=>''); | |
| foreach ($attendees as $attendee_id) { | |
| $data = espresso_prepare_email_data($attendee_id, $multi_reg); | |
| if ($send_attendee_email == 'true') { | |
| $attendee_email_params = espresso_prepare_email($data); |
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_action ( 'action_hook_espresso_social_display_buttons', 'itc_add_tracking_code_hook'); | |
| add_action ( 'wp_head', 'itc_print_tracking_code' ); | |
| function itc_add_tracking_code_hook () { | |
| global $add_my_tracking_code; |
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
| function myvoucher_filter_gettext( $translated, $original, $domain ) { | |
| // This is an array of original strings | |
| // and what they should be replaced with | |
| $strings = array( | |
| 'Enter Voucher code:' => 'Enter Groupon code:', | |
| // Add some more strings here | |
| ); | |
| // See if the current string is in the $strings array |
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 | |
| function htrappfae_remove_paypal_from_event($payment_data) { | |
| extract( $payment_data ); | |
| if ( $event_id==74 ) { //check to see if this is the event with the ID of #74 | |
| remove_action( 'action_hook_espresso_display_offsite_payment_gateway', 'espresso_display_paypal' ); | |
| } | |
| } | |
| add_action ( 'action_hook_espresso_display_offsite_payment_gateway', 'htrappfae_remove_paypal_from_event', 9 ); |
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 | |
| // get the waitlist event data for this event | |
| $cpt_event = $wpdb->get_row("SELECT * FROM " . EVENTS_DETAIL_TABLE . " WHERE id='" . $event_id . "'"); | |
| $event_attendees_max = $cpt_event->reg_limit; | |
| $num_attendees = get_number_of_attendees_reg_limit($event_id, 'num_attendees'); //Get the number of attendees | |
| $allow_overflow = $cpt_event->allow_overflow; |
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 | |
| //* Do NOT include the opening php tag unless this is going into its own file | |
| function my_remove_social_buttons($event_id){ | |
| if ($event_id == '5') | |
| remove_action('action_hook_espresso_social_display_buttons', 'espresso_social_display_buttons', 10, 1); | |
| } | |
| add_action('action_hook_espresso_social_display_buttons', 'my_remove_social_buttons', 9, 1); |
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 | |
| function event_espresso_send_email($params) { | |
| global $org_options; | |
| do_action('action_hook_espresso_log', __FILE__, __FUNCTION__, ''); | |
| extract($params); | |
| //Define email headers | |
| $headers = ""; | |
| if ($org_options['email_fancy_headers']=='Y') { | |
| $headers .= "From: " . $org_options['organization'] . " <" . $org_options['contact_email'] . ">\r\n"; |
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 | |
| // Please do NOT include the opening php tag | |
| /* Wrangle NextGen Gallery so it doesn't break the json API */ | |
| add_action( 'init','ee_nextgen_play_fair',1 ); | |
| function ee_nextgen_play_fair(){ | |
| if( preg_match( "/espresso-api/", $_SERVER['REQUEST_URI'] ) ){ |
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 | |
| /* | |
| Plugin Name: Custom Espresso Title tags | |
| Plugin URI: http://gist.github.com/ | |
| Description: Adds the event name to the page's <title> tag. Requires Event Espresso 3.1.35.P or higher. | |
| Version: 1.0 | |
| Author: Josh Feck | |
| License: GPLv2 | |
| */ |