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, except of course if you're starting with a blank file | |
| add_filter( | |
| 'FHEE__Single_Page_Checkout__display_spco_reg_form__empty_msg', | |
| 'my_custom_nothing_in_event_queue_message' | |
| ); | |
| function my_custom_nothing_in_event_queue_message() { | |
| return sprintf( | |
| 'You need to %1$sReturn to our main ticket sales page%2$sselect at least one event%3$s before you can proceed with the registration process.', |
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
| UPDATE `wp_esp_ticket` SET `TKT_reserved` = '0'; | |
| UPDATE `wp_esp_datetime` SET `DTT_reserved` = '0'; |
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, except of course if you're starting with a blank file | |
| add_filter( | |
| 'FHEE__EE_Export__report_registration_for_event', | |
| 'my_exclude_cancelled_registrations_csv_report', | |
| 10, | |
| 2 | |
| ); | |
| function my_exclude_cancelled_registrations_csv_report( |
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, except of course if you're starting with a blank file | |
| add_filter( | |
| 'FHEE__EE_Export__report_registration_for_event', | |
| 'my_exclude_cancelled_registrations_csv_report', | |
| 10, | |
| 2 | |
| ); | |
| function my_exclude_cancelled_registrations_csv_report( |
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, except of course if you're starting with a blank file | |
| add_action( | |
| 'wp_enqueue_scripts', | |
| 'my_ee_show_only_first_on_sale_ticket', | |
| 20 | |
| ); | |
| function my_ee_show_only_first_on_sale_ticket() { | |
| $custom_js = 'jQuery(document).ready(function($){ |
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 | |
| class EE_SPCO_Reg_Step_Add_Extra_Step extends EE_SPCO_Reg_Step | |
| { | |
| /** | |
| * constructor | |
| * | |
| * @param EE_Checkout $checkout | |
| */ | |
| public function __construct(EE_Checkout $checkout) |
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, except of course if you're starting with a blank file | |
| add_action( | |
| 'action_hook_espresso_payment_page_bottom', | |
| 'my_add_event_date_to_payment_page', | |
| 10 | |
| ); | |
| function my_add_event_date_to_payment_page($event_id) { | |
| echo '<p><span class="section-title">Start Date: </span>' |
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, except of course if you're starting with a blank file | |
| add_filter( | |
| 'FHEE__EventEspresso_core_domain_entities_custom_post_types_CustomPostTypeDefinitions__getCustomPostTypes', | |
| 'ee_modify_page_attributes_of_event_espresso_cpt' | |
| ); | |
| function ee_modify_page_attributes_of_event_espresso_cpt( $cpt_registry_array ) { | |
| if ( isset( $cpt_registry_array['espresso_people'] ) ) { | |
| $cpt_registry_array['espresso_people']['args']['supports'] = 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 | |
| //* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
| add_filter( 'FHEE__EEW_Upcoming_Events__widget__where', 'my_custom_events_widget_where_params', 10, 3 ); | |
| function my_custom_events_widget_where_params( $where, $category, $show_expired ) { | |
| if ( ! $show_expired ) { | |
| $where['Datetime.DTT_EVT_start'] = array( '>=', EEM_Datetime::instance()->current_time_for_query( 'DTT_EVT_start' ) ); | |
| $where['Datetime.DTT_order'] = 1; | |
| } | |
| return $where; |