Syntax_Highlighter::__construct()
Description #
Initialize the addon.
Source #
File: addons/syntaxhighlighter/syntaxhighlighter.php
protected function __construct() { $this->brush(); anspress()->add_filter( 'wp_enqueue_scripts', $this, 'scripts' ); anspress()->add_filter( 'tiny_mce_before_init', $this, 'mce_before_init' ); anspress()->add_filter( 'ap_editor_buttons', $this, 'editor_buttons', 10, 2 ); anspress()->add_filter( 'ap_allowed_shortcodes', $this, 'allowed_shortcodes' ); add_shortcode( 'apcode', array( $this, 'shortcode' ) ); }
Expand full source code Collapse full source code View on GitHub: addons/syntaxhighlighter/syntaxhighlighter.php:47
Add your comment