Manager::is_shortcode_registered_by_class( string $class_name )

Verifies if a given shortcode class name is registered for handling.


Parameters #

$class_name

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


Top ↑

Return #

(bool) Whether a shortcode is registered, by class.


Top ↑

Source #

File: src/Tribe/Shortcode/Manager.php

	public function is_shortcode_registered_by_class( $class_name ) {
		$registered_shortcodes = $this->get_registered_shortcodes();
		return in_array( $class_name, $registered_shortcodes );
	}

Top ↑

Changelog #

Changelog
Version Description
4.12.0 Introduced.