Manager::add_shortcodes()

Add new shortcodes handler to catch the correct strings.


Source #

File: src/Tribe/Shortcode/Manager.php

	public function add_shortcodes() {
		$registered_shortcodes = $this->get_registered_shortcodes();

		// Add to WordPress all of the registered Shortcodes
		foreach ( $registered_shortcodes as $shortcode => $class_name ) {
			add_shortcode( $shortcode, [ $this, 'render_shortcode' ] );
		}
	}

Top ↑

Changelog #

Changelog
Version Description
4.12.0 Introduced.