Manager::is_shortcode_registered( string $slug )

Verifies if a given shortcode slug is registered for handling.


Parameters #

$slug

(string) (Required) Which slug we are checking if is registered.


Top ↑

Return #

(bool) Whether a shortcode is registered or not.


Top ↑

Source #

File: src/Tribe/Shortcode/Manager.php

	public function is_shortcode_registered( $slug ) {
		$registered_shortcodes = $this->get_registered_shortcodes();
		return isset( $registered_shortcodes[ $slug ] );
	}

Top ↑

Changelog #

Changelog
Version Description
4.12.0 Introduced.