Example of how to add a 'LAST_PAYMENT_PAYMENT_TIMESTAMP_' shortcode to the EE Messages system. This will parse to the full timestamp of the last payment made on a transaction, however you can pass a format attribute to set your own, e.g "LAST_PAYMENT_PAYMENT_TIMESTAMP_ format='d/m/Y']"
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 if you already have one | |
| function tw_add_attendee_id_metabox( $something ) { | |
| // Add an contact metabox to the edt registration page. | |
| add_meta_box( | |
| 'edit-contact-id-mbox', | |
| esc_html__('Contact ID', 'event_espresso'), | |
| 'tw_edit_contact_id_mbox', | |
| $something->wp_page_slug, | |
| 'side' |
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' ) { | |
| echo '<meta name="robots" content="noindex">'; |
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', | |
| 'tw_ee_remove_event_cpt_archive' | |
| ); | |
| function tw_ee_remove_event_cpt_archive( $cpt_registry_array ) { | |
| if ( isset( $cpt_registry_array['espresso_venues'] ) ) { | |
| $cpt_registry_array['espresso_venues']['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 | |
| /** | |
| * Template file to add extra content to a single person display | |
| * Note: To customize, just copy the template from /public/templates/* and put in your theme folder. | |
| * | |
| * @since 1.0.0 | |
| * @package EE People Addon | |
| * @subpackage template | |
| * @author Tony Warwick |
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 if you already have one | |
| function tw_ee_only_export_primary_registrants($reg_csv_array, $reg_row) { | |
| //Only export the primary registrants | |
| if( $reg_row['Registration.REG_count'] !== '1' ) { | |
| return array(); | |
| } | |
| //Include the REG_Group_Size column so you can see how many tickets purchased. |
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', 'tw_add_ee_calendar_assets' ); | |
| function tw_add_ee_calendar_assets() { | |
| // change is_page() parameter to match your calendar page slug | |
| if ( class_exists( 'EED_Espresso_Calendar' ) && is_page( 'whats-on' ) ) { | |
| 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_additional_question_groups' ); | |
| function my_custom_checkboxes_for_additional_question_groups() { | |
| echo '<script>jQuery( | |
| "#espresso_events_Registration_Form_Hooks_Extend_additional_questions_metabox input[value=\'1\']" | |
| ) | |
| .prop( "checked", true );</script>'; | |
| } |
NewerOlder