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 | |
| /** | |
| * Content Template for the [ESPRESSO_EVENT_ATTENDEES] shortcode | |
| * | |
| * @package Event Espresso | |
| * @subpackage templates | |
| * @since 4.6.29 | |
| * @author Darren Ethier | |
| * | |
| * Template Args that are available in this template |
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( 'template_redirect', 'my_remove_ical_link' ); | |
| function my_remove_ical_link() { | |
| remove_filter( 'FHEE__espresso_list_of_event_dates__datetime_html', array( 'EED_Ical', 'generate_add_to_iCal_button' ), 10 ); | |
| } |
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 | |
| function ee_add_tagseo_meta() { | |
| if ('espresso_events' == get_post_type() && is_single() ){ | |
| $id = get_the_id(); | |
| $event = EEH_Event_View::get_event( $id ); | |
| $status = $event instanceof EE_Event ? $event->get_active_status() : ''; | |
| if ( $status == 'DTE' ) { | |
| ?> |
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_Register_CPTs__get_CPTs__cpts', | |
| 'ee_remove_event_cpt_archive' | |
| ); | |
| function ee_remove_event_cpt_archive( $cpt_registry_array ) { | |
| if ( isset( $cpt_registry_array['espresso_events'] ) ) { | |
| $cpt_registry_array['espresso_events']['args']['has_archive'] = false; |
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( 'template_redirect', 'my_add_ee_calendar_assets' ); | |
| function my_add_ee_calendar_assets() { | |
| // change is_page() parameter to match your calendar page slug | |
| if ( class_exists( 'EED_Espresso_Calendar' ) && is_page( 'calendar' ) ) { | |
| global $is_espresso_calendar; | |
| $is_espresso_calendar = TRUE; | |
| add_action( 'wp_enqueue_scripts', array( EED_Espresso_Calendar::instance(), 'calendar_scripts' ) ); |
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( 'AHEE_event_editor_questions_notice', 'my_custom_checkboxes_for_primary_question_groups' ); | |
| function my_custom_checkboxes_for_primary_question_groups() { | |
| echo '<script>jQuery( | |
| "#espresso_events_Registration_Form_Hooks_Extend_primary_questions_metabox input[value=\'3\']" | |
| ) | |
| .prop( "checked", true );</script>'; | |
| } |
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_change_default_ee_country_option', | |
| 20 | |
| ); | |
| function my_change_default_ee_country_option(){ | |
| $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 | |
| /** | |
| * This template will display a list of events - copy it to your theme folder | |
| * | |
| * @ package Event Espresso | |
| * @ author Seth Shoultes | |
| * @ copyright (c) 2008-2013 Event Espresso All Rights Reserved. | |
| * @ license http://eventespresso.com/support/terms-conditions/ * see Plugin Licensing * | |
| * @ link http://www.eventespresso.com | |
| * @ version 4+ |
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 | |
| /** | |
| * PLEASE READ AND FOLLOW ALL INSTRUCTIONS IN CAPS | |
| * | |
| * IN ORDER FOR THIS TO WORK YOU NEED TO ACTIVATE THE "ADDRESS QUESTION GROUP" | |
| * THEN SET THE STATE/PROVINCE QUESTION TO BE REQUIRED | |
| * | |
| * BECAUSE THIS QUESTION SHOULD ONLY BE ASKED ONCE PER TRANSACTION |
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 READ AND FOLLOW ALL INSTRUCTIONS IN CAPS | |
| * | |
| * IN ORDER FOR THIS TO WORK YOU NEED TO ADD A CUSTOM QUESTION | |
| * BY LOGGING INTO THE WORDPRESS ADMIN AND GOING TO : | |
| * Event Espresso > Registration Form | |
| * AND THEN CLICKING ON "Add New Question" | |
| * FOR THIS EXAMPLE CODE I CREATED A QUESTION NAMED "Billing Address Province" | |
| * SET ITS TYPE TO "Dropdown" AND GAVE IT THE FOLLOWING TWO OPTIONS: |
NewerOlder