Yoast\WP\SEO\Conditionals

Addon_Installation_Conditional{}Yoast 1.0

Checks if the Addon_Installation constant is set.

Хуков нет.

Использование

$Addon_Installation_Conditional = new Addon_Installation_Conditional();
// use class methods

Методы

  1. protected get_feature_flag()

Код Addon_Installation_Conditional{} Yoast 19.10

class Addon_Installation_Conditional extends Feature_Flag_Conditional {

	/**
	 * Returns the name of the feature flag.
	 * 'YOAST_SEO_' is automatically prepended to it and it will be uppercased.
	 *
	 * @return string the name of the feature flag.
	 */
	protected function get_feature_flag() {
		return 'ADDON_INSTALLATION';
	}
}