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
Created March 19, 2016 17:13
Ideas on managing required and optional questions for different events in Event Espresso 4

This minimum information that Event Espresso needs for a registration is a first name and an email address. Last name is now optional.

Questions for Event Espresso 4 are creatied through the questions editor which can be found in Event Espresso --> Registrations Form --> Questions --> Add New Question.

That editor has an option for making a question optional or required:

Image of required question setting in Event Espresso

By default it is set to optional.

@lorenzocaum
lorenzocaum / new_gist_file.md
Last active March 16, 2016 22:40
How to increase the memory available to PHP on your WordPress site

Step 1 - Login to your WP site with an SFTP or FTP client

Login to your WordPress site with an SFTP or FTP client. We recommend Transmit (for Mac). FileZilla and Cyberduck are free options that is available for multiple platforms.

Step 2 - Locate the WordPress root

Then browse to your WordPress root or the current location of your wp-config.php file.

Step 3 - Add the WP_MEMORY_LIMIT constant to your wp-config.php file

@lorenzocaum
lorenzocaum / new_gist_file.md
Created March 4, 2016 19:42
Ideas on adjusting Sage Pay (UK) to not require the state/province or the zip/postal code

Generally, a full address is recommended for billing information. However, not all countries use or have a zip / postal code so this tutorial will go over how to make that field and others optional.

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

//* Allow state or province field to be a text field and make it optional
add_filter( 'FHEE__EE_Billing_Attendee_Info_Form__state_field', 'billing_locale_text_field', 10, 1 );
@lorenzocaum
lorenzocaum / new_gist_file.md
Last active March 4, 2016 19:52
Ideas on adjusting Braintree to not require the state, country, and zip code

Generally, a full address is recommended for billing information. However, not all countries use or have a zip / postal code so this tutorial will go over how to make that field and others optional.

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

//* Allow state or province field to be a text field and make it optional
add_filter( 'FHEE__EE_Billing_Attendee_Info_Form__state_field', 'billing_locale_text_field', 10, 1 );
@lorenzocaum
lorenzocaum / new_gist_file.md
Last active February 27, 2017 18:55
How to setup the SendGrid transactional email service with WordPress
@lorenzocaum
lorenzocaum / new_gist_file.md
Created February 27, 2016 03:08
How to change the empty cart messaging in Easy Digital Downloads

Add the sample code below to your child theme's functions.php file or in a site specific plugin. Then update as needed and save changes.

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

//* Change empty cart messaging for Easy Digital Downloads
function edd_custom_empty_cart_message() {
	return '<p class="my_empty_cart">Your shopping cart is empty :(<br /><br /><a href="/downloads/">Return to store to make a purchase</a></p>';
}
@lorenzocaum
lorenzocaum / new_gist_file.md
Last active February 27, 2016 03:04
How to add a message after the checkout button on the checkout page in Easy Digital Downloads

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

//* Add secure processing message to checkout for Easy Digital Downloads
function edd_checkout_secure_messaging() {
?>
	<span class="dashicons dashicons-lock"></span> Your transaction will be securely processed.
@lorenzocaum
lorenzocaum / new_gist_file.md
Last active February 26, 2016 04:00
Documentation for the Email Assist Add-on for Event Espresso 4
@lorenzocaum
lorenzocaum / new_gist_file_0.md
Last active February 25, 2016 20:24
Overview of Third-party Payment Gateways Available for Event Espresso 4
@lorenzocaum
lorenzocaum / new_gist_file.md
Created February 25, 2016 01:42
How to translate the content in the Events Split View Template add-on for Event Espresso 4

We've made it easy to translate certain content that is used by the Events Split View Template add-on.

By default the following messaging / verbiage is used:

The label for the category filter is called Filter by Event Category.

The word that separates the first start date and the start time is at.

The messaging that appears before the cost of the event is Starting from.