Yoast\WP\SEO\Conditionals

Schema_Blocks_Conditional{}Yoast 1.0

Устарела с версии 20.5. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Checks if the YOAST_SEO_SCHEMA_BLOCKS constant is set.

Хуков нет.

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

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

Методы

  1. protected get_feature_flag()

Список изменений

Устарела с 20.5

Код Schema_Blocks_Conditional{} Yoast 22.4

class Schema_Blocks_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() {
		\_deprecated_function( __METHOD__, 'Yoast SEO 20.5' );
		return 'SCHEMA_BLOCKS';
	}
}