Created
March 6, 2014 18:37
-
-
Save Pross/9396483 to your computer and use it in GitHub Desktop.
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
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