Skip to content

Instantly share code, notes, and snippets.

View lorenzocaum's full-sized avatar

Lorenzo Orlando Caum lorenzocaum

View GitHub Profile
@lorenzocaum
lorenzocaum / shopp_purchase_order_authorizenet_processing.php
Last active October 11, 2015 01:38
Enable auth & capture (saleonly) for various payment gateways for Shopp
<?php
//* Do NOT include the opening php tag
//* Enable auth and capture for Authorizenet for Shopp
add_filter('shopp_purchase_order_authorizenet_processing',create_function('','return "sale";'));
@lorenzocaum
lorenzocaum / gist:8293c68d5d1bc3bb6403
Last active November 18, 2015 02:07
How to enable all countries in dropdown menus in Event Espresso 4

Download the plugin below:

http://cl.ly/3L381J3O0T22/download/event-espresso-enable-all-countries.zip

Login to your WordPress dashboard (WP-admin) and go to Plugins. Next, click on Add New --> Upload and browse to the plugin on your computer. Then select the zip file and begin the upload process. Wait for the plugin to upload and then click on Activate.

You can then deactivate the plugin and delete it from your site.

@lorenzocaum
lorenzocaum / gist:7b6b170ceccb275b5c3f
Last active August 29, 2015 14:01
Setup PayPal is optional messaging for Event Espresso 3
/* Style PayPal optional messaging */
#external-link-msg-pg {
padding: 1em;
margin:0 0 2em;
background-color: #FFFFE0;
border:1px solid #E6DB55;
border-radius: 2px; }
@lorenzocaum
lorenzocaum / gist:848801a1173be464fbe7
Last active January 30, 2017 00:36
Enable WordPress debugging with debug log on and debug display on
<?php
//* Do NOT include the opening php tag
//* Enable WordPress debugging with debug log and debug display
define('WP_DEBUG', true);
if (WP_DEBUG) {
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', true);
}
@lorenzocaum
lorenzocaum / gist:04bb75c4fc882306fb04
Last active September 19, 2015 19:24
Hide content for Event Espresso 4 pages in Twenty Twelve WordPress theme

Add the following CSS to your child theme's CSS or through a plugin like Reaktiv CSS Builder or My Custom CSS:

/* Hide archives header and title, leave reply link on Event Espresso event list page */
.post-type-archive-espresso_events header.archive-header, .post-type-archive-espresso_events .leave-reply {display:none;}

/* Hide posted on date and author on Event Espresso event list page */
.post-type-archive-espresso_events .entry-meta {display:none;}

/* Hide leave reply link, posted on date and author, navigation links on Event Espresso single events pages */
@lorenzocaum
lorenzocaum / gist:56d63489ff2e7e3bd808
Last active September 19, 2015 19:25
Hide content for Event Espresso 4 pages in Twenty Eleven WordPress theme

Add the following CSS to your child theme's CSS or through a plugin like Reaktiv CSS Builder or My Custom CSS:

/* Hide archives header and title, comment icon on Event Espresso event list page */
.post-type-archive-espresso_events header.page-header, .post-type-archive-espresso_events .comments-link {display:none;}

/* Hide posted on date and author, navigation links on Event Espresso event list page */
.post-type-archive-espresso_events .entry-meta, .post-type-archive-espresso_events #nav-below {display:none;}

/* Hide posted on date and author, navigation links on Event Espresso single event pages */
@lorenzocaum
lorenzocaum / gist:32b32d64b77bdd0bdb62
Last active September 19, 2015 19:26
Hide content for Event Espresso 4 pages in Twenty Thirteen WordPress theme

Add the following CSS to your child theme's CSS or through a plugin like Reaktiv CSS Builder or My Custom CSS:

/* Hide archives header and title, comment icon on Event Espresso event list page */
.post-type-archive-espresso_events header.archive-header, .post-type-archive-espresso_events .comments-link {display:none;}
 
/* Hide navigation links on Event Espresso event list page */
.post-type-archive-espresso_events .nav-links {display:none;}

/* Hide navigation links on Event Espresso single event pages */
@lorenzocaum
lorenzocaum / gist:7b260879ab2ead7bcf7c
Last active September 19, 2015 19:28
Hide content for Event Espresso 4 pages in Twenty Fourteen WordPress theme

Add the following CSS to your child theme's CSS or through a plugin like Reaktiv CSS Builder or My Custom CSS:

/* Hide archives header and title, comment icon on Event Espresso event list page */
.post-type-archive-espresso_events header.page-header, .post-type-archive-espresso_events .comments-link {display:none;}
 
/* Hide navigation links on Event Espresso event list page */
.post-type-archive-espresso_events .paging-navigation {display:none;}

/* Hide comment link, navigation links on Event Espresso single event pages */
@lorenzocaum
lorenzocaum / gist:393de3414e35094c6bd1
Last active September 19, 2015 19:29
Replace free event no billing messaging in Event Espresso 4 with something else

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
 
//* Replace free event no billing messaging with something else
function ee_replace_free_event_no_billing_messaging($content)
{
$content = str_replace('This is a free event, so no billing will occur.', 'This is a free event. Please click the Finalize button below to finish your registration.',$content);
@lorenzocaum
lorenzocaum / gist:b85b1fdfaba8ab7c9f8e
Last active September 19, 2015 20:03
Change the button text for the Register Now button on the Event Espresso calendar

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
 
//* Replace the Register Now text with something else
function ee_change_register_now_button_calendar( $translated, $original, $domain ) {
 
 $strings = array(