This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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 ee_event_created_email($params) { | |
global $wpdb; | |
$event_id = $params['event_id']; | |
if(empty($event_id)) { | |
return; | |
} | |
$sql = "SELECT evt.id, evt.event_name, evt.start_date, evt.end_date, se.start_time, se.end_time, v.name as venue_name, v.address, v.address2, v.city, v.state, v.zip FROM " . EVENTS_DETAIL_TABLE . " evt "; |
This file contains 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 | |
add_filter('filter_hook_espresso_default_create_post_option', 'ee_return_create_post'); | |
function ee_return_create_post(){ | |
return 'Y'; | |
} | |
?> |
This file contains 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 | |
function espresso_exclude_cancelled_payment_status() { | |
return ' AND a.payment_status != "Cancelled"'; | |
} | |
add_filter('espresso_attendee_report_payment_status_where', 'espresso_exclude_cancelled_payment_status'); | |
?> |
This file contains 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 if there is already one within the file that is still open. | |
function espresso_ticket_links_by_session($registration_id, $attendee_id, $multi_reg, $email = FALSE) { | |
global $wpdb; | |
$sql = "SELECT attendee_session FROM " . EVENTS_ATTENDEE_TABLE; | |
if (espresso_is_primary_attendee($attendee_id) != true) { | |
$sql .= " WHERE id = '" . $attendee_id . "' "; | |
} else { | |
$sql .= " WHERE registration_id = '" . $registration_id . "' "; | |
} |
This file contains 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 if one is already open. | |
function ee_wp_mail_fix() | |
{ | |
global $this_is_a_reg_page; | |
if($this_is_a_reg_page) { | |
remove_action('template_redirect', 'wp_email', 5); | |
} | |
} | |
add_action( 'template_redirect', 'ee_wp_mail_fix', 4 ); |
This file contains 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 above opening php tag | |
function my_itemised_surcharge( $attendees ){ | |
$options = get_option( 'events_organization_settings' ); | |
$currency = $options['currency_symbol']; | |
$this->SetFillColor( 239,239,239 ); | |
//var_dump($attendees); | |
This file contains 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
// suggested code placement is right after the line that says: | |
// $pdf->ImprovedTable($header, $attendees, $w, $alling); | |
$pdf->Ln(1); | |
$pdf->my_itemised_surcharge($attendees); |
This file contains 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. | |
function mycustom_filter_gettext( $translated, $original, $domain ) { | |
// This is an array of original strings | |
// and what they should be replaced with | |
$strings = array( | |
' or ' => '', | |
// Add some more strings here |
This file contains 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 | |
//List Attendees Template | |
//Show a list of attendees using a shortcode | |
//[LISTATTENDEES] | |
//[LISTATTENDEES limit="30"] | |
//[LISTATTENDEES show_expired="false"] | |
//[LISTATTENDEES show_deleted="false"] | |
//[LISTATTENDEES show_secondary="false"] | |
//[LISTATTENDEES show_gravatar="true"] | |
//[LISTATTENDEES paid_only="true"] |
OlderNewer