Skip to content

Instantly share code, notes, and snippets.

@Pross
Created March 6, 2014 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pross/9396483 to your computer and use it in GitHub Desktop.
Save Pross/9396483 to your computer and use it in GitHub Desktop.
class PageLines_ShortCodes {
function __construct() {
self::register_shortcodes( $this->shortcodes_core() );
// Make widgets process shortcodes
add_filter( 'widget_text', 'do_shortcode' );
add_action('wp_footer',array( $this, 'print_carousel_js' ), 21);
add_action('wp_footer',array( $this, 'print_shortcode_js' ), 21);
add_filter( 'no_texturize_shortcodes', array( $this, 'shortcodes_to_exempt_from_wptexturize' ) );
}
private function shortcodes_to_exempt_from_wptexturize($shortcodes){
$shortcodes = array_merge( $shortcodes, $this->shortcodes_core() );
return $shortcodes;
}
private function shortcodes_core() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment