Yoast\WP\SEO\Conditionals

MyYoast_Connection_Conditional{}Yoast 1.0└─ Feature_Flag_Conditional

Feature flag conditional for the MyYoast connection (OAuth client, WP-CLI commands, and the key-rotation cron).

Enable by defining YOAST_SEO_MYYOAST_CONNECTION as true in wp-config.php.

Хуков нет.

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

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

Методы

  1. protected get_feature_flag()

Код MyYoast_Connection_Conditional{} Yoast 27.7

class MyYoast_Connection_Conditional extends Feature_Flag_Conditional {

	/**
	 * Returns the name of the feature flag.
	 *
	 * @return string The name of the feature flag.
	 */
	protected function get_feature_flag() {
		return 'MYYOAST_CONNECTION';
	}
}