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 | |
| /** | |
| * By default EE appends the "content-espresso_venues-location.php" template AFTER the | |
| * venue content. It does this via the EED_Venue_Single / EED_Venues_Archive | |
| * ::venue_location() callbacks, which are hooked onto `the_content` (and, for the | |
| * archive, `the_excerpt`) at priority 110 from inside each module's venue_details(). | |
| * | |
| * Rather than trying to intercept those filters per-context (the gist approach only | |
| * caught single venues because the archive module re-registers its filters inside the | |
| * loop and also uses `the_excerpt`), we hook the single seam that every venue render |
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: Event Espresso site specific functions | |
| Description: Add custom functions for Event Espresso to this plugin. | |
| /* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one! */ | |
| function tw_ee_output_admin_invoice_payment_method($payment_methods, $transaction, $scope) { | |
| //Check if the user is logged in, is not within the admin and has the correct capability | |
| if( is_user_logged_in() && current_user_can( 'manage_options' ) ) { |
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. |
NewerOlder