Skip to content

Instantly share code, notes, and snippets.

View lorenzocaum's full-sized avatar

Lorenzo Orlando Caum lorenzocaum

View GitHub Profile
@lorenzocaum
lorenzocaum / new_gist_file.md
Last active August 9, 2017 12:33
How to remove the end time from the [ESPRESSO_MY_EVENTS] page for the WP User Integration in Event Espresso 4

This can be done by using moving a copy of the content-espresso_my_events-event_section.template.php to a child theme's folder and then making changes to remove end time.

The content-espresso_my_events-event_section.template.php file can be found in this location

/wp-content/plugins/eea-wp-user-integration/templates/content-espresso_my_events-event_section.template.php

Step 1) Copy the content-espresso_my_events-event_section.template.php into your child theme's folder.

Not using a child theme? A child theme allows you to customize your WordPress theme without losing customizations when you update your theme through WP. Here is how to setup a child theme.

@lorenzocaum
lorenzocaum / new_gist_file.md
Created March 3, 2017 15:58
How to change the sold out messaging in the Events Table View Template

Add the sample code below to your child theme's functions.php file or in a site specific plugin. Then change REPLACE ME to the new messaging that you would like to display.

<?php
//* Do NOT include the opening php tag

//* Change the sold out messaging in the events table view template to something else
function ee_custom_messaging_sold_out( $translated, $original, $domain ) {
    $strings = array(
 'Sold Out' =&gt; 'REPLACE ME',
@lorenzocaum
lorenzocaum / new_gist_file.md
Created January 13, 2017 14:17
How to increase the number of lists that are shown in MailChimp

Add the sample code below to your child theme's functions.php file or in a site specific plugin. Then change the text after the arrow to something of your choice.

<?php
//* Do NOT include the opening php tag

//* Change MailChimp to retrieve up to 50 lists
function tw_limit_mailchimp_list_call( $params, $mailchimp_controler ) {
    $params['limit'] = 50;
 return $params;
@lorenzocaum
lorenzocaum / new_gist_file.md
Created August 29, 2016 16:43
How to change the not approved messaging that is shown during registration checkout

Add the sample code below to your child theme's functions.php file or in a site specific plugin. Then change the REPLACE ME text after the arrow to something of your choice.

<?php
//* Do NOT include the opening php tag

//* Change the intro in order to messaging in registration checkout
function ee_custom_messaging_registration_checkout_not_approved( $translated, $original, $domain ) {
    $strings = array(
        'The following events do not require payment at this time and will not be billed during this transaction. Billing will only occur after the attendee has been approved by the event organizer. You will be notified when your registration has been processed. If this is a free event, then no billing will occur.' => 'REPLACE ME',
@lorenzocaum
lorenzocaum / new_gist_file.md
Created August 15, 2016 13:19
How to hide the add new state/province option during registration checkout for Event Espresso 4
/* Hide the click here to add a new state/province link during registration checkout */
.ee-form-add-new-state-lnk { display: none }

You can add new the styling to your child theme's stylesheet or through a plugin like Reaktiv CSS builder or Simple Custom CSS.

@lorenzocaum
lorenzocaum / new_gist_file.md
Created August 14, 2016 16:45
Edit the Events Table View Template add-on to show a field from Advanced Custom Fields

This can be done by relocating one of the templates and making a change to some lines of code. This will ensure that your customization is not lost on a software update.

Advanced Custom Fields has a get_field() function that can be used to retrieve and display information:

https://www.advancedcustomfields.com/resources/get_field/

For this tutorial, the name of the field will be instructor_name.

The support team at Event Espresso will never recommend you edit any core plugin or add-on files directly.

@lorenzocaum
lorenzocaum / new_gist_file.md
Created July 22, 2016 14:45
How to change the intro messaging at the top of the registration checkout page for Event Espresso 4

Add the sample code below to your child theme's functions.php file or in a site specific plugin. Then change the text after the arrow to something of your choice.

<?php
//* Do NOT include the opening php tag

//* Change the intro in order to messaging in registration checkout
function ee_custom_messaging_registration_checkout_in_order_to( $translated, $original, $domain ) {
    $strings = array(
        'In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.' => 'In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required. Enter a name and email for each ticket option',
@lorenzocaum
lorenzocaum / new_gist_file.md
Created July 14, 2016 21:15
How to add a message before or after the ticket selector on the single event page in Event Espresso 4

Add one of more of the sample code snippets below to your child theme's functions.php file or in a site specific plugin. Then change REPLACE ME to the new messaging that you would like to display to your attendees/registrants.

<?php
//* Do NOT include the opening php tag

//* Add a message above the ticket selector
add_action( 'AHEE__ticket_selector_chart__template__before_ticket_selector', 'ee_custom_messaging_before_ticket_selector' );
function ee_custom_messaging_before_ticket_selector() {
 echo 'REPLACE ME';
@lorenzocaum
lorenzocaum / new_gist_file.md
Created July 14, 2016 20:05
Example of how to create a link that opens in a new window

<a href="http://example.com/terms-and-conditions/" target="_blank">Click here to view the terms and conditions</a>

@lorenzocaum
lorenzocaum / new_gist_file.md
Created July 1, 2016 13:43
How to deactivate the Essential Grid plugin and the Social Warfare plugin in the event editor and venue editor for Event Espresso 4

Add the sample code below to your child theme's functions.php file or in a site specific plugin.

<?php
//* Do NOT include the opening php tag

//* Remove Essential Grid and Social Warfare meta boxes from event editor
add_action( 'add_meta_boxes_espresso_events', 'espresso_remove_admin_stuff_other_plugins_events' );

function espresso_remove_admin_stuff_other_plugins_events() {