PUM_Shortcode::register()
Register this shortcode with Shortcode UI & Shortcake.
Description Description
Source Source
File: classes/Shortcode.php
public function register() { add_shortcode( $this->tag(), array( $this, 'handler' ) ); add_action( 'print_media_templates', array( $this, 'render_template' ) ); add_action( 'register_shortcode_ui', array( $this, 'register_shortcode_ui' ) ); PUM_Shortcodes::instance()->add_shortcode( $this ); }
Expand full source code Collapse full source code View on Trac