WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта с помощью браузерных PUSH уведомлений
функция не описана

WPSEO_Option_Wpseo::verify_features_against_network() public Yoast 1.0

Verifies that the feature variables are turned off if the network is configured so.

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

Хуков нет.

Возвращает

Разное. Filtered $options value.

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

$WPSEO_Option_Wpseo = new WPSEO_Option_Wpseo();
$WPSEO_Option_Wpseo->verify_features_against_network( $options );
$options(разное)
Value of the option to be returned. Typically an array.

Код WPSEO_Option_Wpseo::verify_features_against_network() Yoast 16.2

<?php
public function verify_features_against_network( $options = [] ) {
	if ( ! is_array( $options ) || empty( $options ) ) {
		return $options;
	}

	// For the feature variables, set their values to off in case they are disabled.
	$feature_vars = [
		'disableadvanced_meta'           => false,
		'ryte_indexability'              => false,
		'content_analysis_active'        => false,
		'keyword_analysis_active'        => false,
		'enable_admin_bar_menu'          => false,
		'enable_cornerstone_content'     => false,
		'enable_xml_sitemap'             => false,
		'enable_text_link_counter'       => false,
		'enable_metabox_insights'        => false,
		'enable_link_suggestions'        => false,
		'enable_headless_rest_endpoints' => false,
		'tracking'                       => false,
		'enable_enhanced_slack_sharing'  => false,
		'semrush_integration_active'     => false,
		'zapier_integration_active'      => false,
	];

	// We can reuse this logic from the base class with the above defaults to parse with the correct feature values.
	$options = $this->prevent_disabled_options_update( $options, $feature_vars );

	return $options;
}