Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Last active Dec 11, 2015
Embed
What would you like to do?
Add this to a site that has the 3 Clicks WordPress theme to force 3 clicks to display content from the Event Espresso plugin.
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
function remove_g1_precontent_render() {
if ( 'espresso_events' == get_post_type() ) {
remove_action( 'g1_precontent', 'g1_precontent_render' );
}
}
add_action( 'g1_precontent', 'remove_g1_precontent_render', 9 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment