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 );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.