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 June 29, 2016 22:44
How to setup the Mailgun transactional emails service with WordPress

Step 1 - Register for a Mailgun account

Go to this page and register for an account: https://www.mailgun.com

There is a free option available.

Step 2 - You should see a success page for Mailgun

You’ll then be brought to a success page. Here is an example:

@lorenzocaum
lorenzocaum / new_gist_file.md
Created May 31, 2016 14:38
How to remove related posts from Jetpack from events in Event Espresso

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 Jetpack related posts on single event pages
function ee_jetpackme_no_related_posts( $options ) {
if ( 'espresso_events' == get_post_type() && is_singular() && !post_password_required() ) {
 $options['enabled'] = false;
@lorenzocaum
lorenzocaum / new_gist_file.md
Last active May 22, 2016 00:25
How to send a message to your guests for your event

Login to your WP-admin (WP dashboard) and go to Event Espresso --> Events. Then hover over the name of your event and then click on Registrations. This will take you to the registrations overview page that shows attendees/registrants for a specific event.

Look in the top right corner of the screen and click on Screen Options. Next, look for the Registrations field and change it to a larger value such as 75 or 100 and then click Apply which will save changes and the page will refresh.

You can now select all registrants by placing a checkmark in the heading column which will select all registrants on the page or you can select only certain guests. Once you have selected your registrants, scroll down towards the end of the page and click on the Send Batch Message button. A small window will appear and you can select a template such as the Global option and then enter a message and then click on the Send button to send out your message.

The best way to learn is to take a look at

@lorenzocaum
lorenzocaum / new_gist_file.md
Created May 11, 2016 12:07
How to add a message below the attendee information form in registration checkout for Event Espresso 4
<?php
//* Do NOT include the opening php tag

function ee_add_custom_messaging_after_attendee_information_registration_checkout_footer() {
        ?>
        <p style="text-align: center; font-weight:bold;">Replace Me</p>
        <?php
}
add_action( 'AHEE__SPCO__reg_form_footer', 'ee_add_custom_messaging_after_attendee_information_registration_checkout_footer' );
@lorenzocaum
lorenzocaum / new_gist_file.md
Last active April 30, 2016 16:57
How to set a language option for the PayPal Standard payment page in Event Espresso 3

There is a parameter that can be used to pick a language (localize) the payment page that registrants/attendees see when they go to pay with PayPal Standard. This can be setup by relocating a copy of the PayPal Standard payment gateway for Event Espresso 3 to a safe location and then making an edit. This ensures that this customization is not lost on a software update.

Using Event Espresso 4 for your project? Check out this tutorial instead: https://gist.github.com/joshfeck/6c37bc00ae0b301a53148444f3326817

  1. Ensure that you are running a current version of Event Espresso 3. You can see the changelog for Event Espresso 3 here:

https://eventespresso.com/wiki/change-log/

  1. Login to your WordPress site with an SFTP / FTP client. Cyberduck and FileZilla are free options. If you are on a Mac, then try Transmit.
@lorenzocaum
lorenzocaum / new_gist_file.md
Last active April 26, 2016 23:40
How to create an event with a required ticket option in Event Espresso 4

The required ticket feature in Event Espresso 4 will let you set a specific ticket to required while allowing you to create other ticket options that are optional.

Here is an overview of the steps:

Login to your WordPress dashboard and go to Event Espresso --> Events. Then click on Add New or click on an existing event to edit an event that you have already created. Go ahead and enter basic event information such as a title and event description. Then edit the ticket option to enable the required option through the gear (advance options) icon. Then save changes to the event.

The best way to learn is to take a look at the video below and then try it out on your own. Don't worry about setting up something wrong and if you are not sure, then reach out via the Event Espresso support forums.

##Required ticket event

@lorenzocaum
lorenzocaum / new_gist_file.md
Last active April 21, 2016 19:57
How to add noindex nofollow to the event listings page for Event Espresso 4

The following can be added to a site specific plugin or through a child theme's functions.php file.

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

//* Add noindex nofollow to the Event Espresso event listings page
function ee_noindex_nofollow_event_listing_page() {
    if( is_post_type_archive('espresso_events') )
 echo( '' );
@lorenzocaum
lorenzocaum / new_gist_file.md
Created April 20, 2016 11:39
How to hide certain icons on the My Events page for Event Espresso 4

The WP User Integration add-on has a shortcode for adding a My Events page. That shortcode is:

[ESPRESSO_MY_EVENTS]

There are various icons that are shown under the actions column. From left to right, they are:

Edit registration

Resend registration details email

@lorenzocaum
lorenzocaum / new_gist_file.md
Last active February 19, 2020 18:35
Edit the Events Table View Template Add-on for Event Espresso 4 to show the a Goes On Sale date column

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.

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

Here are the steps:

  1. Login to your WordPress root with your preferred SFTP or FTP client. Filezilla and Cyberduck are free options. On a Mac? Try Transmit

  2. Browse to this location:

@lorenzocaum
lorenzocaum / new_gist_file.md
Created March 30, 2016 16:28
How to change the button text for the promotions field in Event Espresso 4

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 as the new button text.

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

//* Change proceed to finalize registration button text in registration checkout
function ee_custom_messaging_promotion_button( $translated, $original, $domain ) {
    $strings = array(
 'Submit %s' =&gt; 'REPLACE ME',