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:46
Edit the Events Table View Template Add-on for Event Espresso 4 to remove the venues column

This can be done by relocating one of the templates and making a change to a line of code. This will ensure that your customization is not lost on a software update. 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:

/wp-content/plugins/eea-events-table-view-template/templates

You'll see two files there:

@lorenzocaum
lorenzocaum / new_gist_file.md
Last active August 9, 2017 12:45
Edit the Events Table View Template Add-on for Event Espresso 4 to change the button from View Details to Register Now

This can be done by relocating one of the templates and making a change to a line 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
Last active August 9, 2017 12:45
Edit the Events Table View Template Add-on for Event Espresso 4 to show the a Day of Week 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
Last active August 9, 2017 12:44
Edit the Events Table View Template Add-on for Event Espresso 4 to show the venue city in the venue 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
Last active August 9, 2017 12:44
Edit the Events Table View Template Add-on for Event Espresso 4 to show the information columns in a different order

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
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
Last active August 7, 2017 13:11
Edit the Events Table View Template Add-on for Event Espresso 4 to add the featured image for an event

This can be done by relocating one of the templates to your child theme and making a change to a line 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_0.md
Last active June 9, 2017 06:55
How to change the formatting of the venue address in 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

//* Change formatting for the venue address for the United Kingdom and Canada and Germany and Singapore
function ee_adjust_formatting_venue_address( $address_formats ) {
    $address_formats[ 'GB' ] = "{address}%{address2}%{city}%{zip}";
 $address_formats[ 'CA' ] = "{address}%{address2}%{city}%{state}%{country}%{zip}";
@lorenzocaum
lorenzocaum / new_gist_file.md
Last active March 11, 2017 18:04
How to hide the Use Attendee #1's information for ALL attendees option during registration checkout for Event Espresso 4

The CSS below can be added to your child theme's stylesheet (CSS file) or via a plugin like Reaktiv CSS Builder or Simple Custom CSS.

/* Hide the copy attendee checkbox option during registration checkout */
div#spco-copy-attendee-dv { display: none }
@lorenzocaum
lorenzocaum / new_gist_file.php
Last active March 9, 2017 13:07
How to change the session expiration time in Event Espresso 4
<?php
//* Do NOT include the opening php tag
//* Change the session (this holds registration information during registration checkout) expiration time to two hours
function ee_revise_session_expiration_time() {
return 120 * MINUTE_IN_SECONDS;
}
add_filter ('FHEE__EE_Session__construct___lifespan', 'ee_revise_session_expiration_time');