WPSEO_Utils::retrieve_enabled_features()public staticYoast 1.0

Gets an array of enabled features.

{} Это метод класса: WPSEO_Utils{}

Хуков нет.

Возвращает

Строку[]. The array of enabled features.

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

$result = WPSEO_Utils::retrieve_enabled_features();

Код WPSEO_Utils::retrieve_enabled_features() Yoast 19.7.1

public static function retrieve_enabled_features() {
	/**
	 * The feature flag integration.
	 *
	 * @var Feature_Flag_Integration $feature_flag_integration;
	 */
	$feature_flag_integration = YoastSEO()->classes->get( Feature_Flag_Integration::class );
	return $feature_flag_integration->get_enabled_features();
}