Created
June 10, 2016 18:10
-
-
Save shackep/1ec42fd7657c054d75fd22e59bd31326 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Create Content_TOC: | |
* 1) Setup default header elements | |
* 2) Register shortcode | |
*/ | |
protected function __construct() { | |
// Register TOC shortcode | |
add_shortcode( 'hm_content_toc', array( $this, 'shortcode' ) ); | |
// Shortcake UI plugin integration (Source: https://github.com/fusioneng/Shortcake) | |
if ( function_exists( 'shortcode_ui_register_for_shortcode' ) ) { | |
add_action( 'init', array( $this, 'register_shortcake_ui' ) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment