-
-
Save Pebblo/43ada112b6ecc80871eb to your computer and use it in GitHub Desktop.
An example of how to prevent Woo Canvas from breaking the excerpts on EE archive list pages.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Event Espresso site specific functions | |
Description: Add custom functions for Event Espresso to this plugin. | |
/* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one! */ | |
function ee_remove_woo_remove_dropcap_from_excerpts() { | |
if ( is_post_type_archive( 'espresso_events' ) ) { | |
remove_filter( 'get_the_excerpt', 'woo_remove_dropcap_from_excerpts' ); | |
} | |
} | |
add_action( 'template_redirect', 'ee_remove_woo_remove_dropcap_from_excerpts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment