WPSEO_Option_Wpseo::get_verify_features_option_filter_hook()protectedYoast 1.0

Gets the filter hook name and callback for adjusting the retrieved option value against the network-allowed features.

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

Хуков нет.

Возвращает

Массив. Array where the first item is the hook name, the second is the hook callback, and the third is the hook priority.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_verify_features_option_filter_hook();

Код WPSEO_Option_Wpseo::get_verify_features_option_filter_hook() Yoast 22.4

protected function get_verify_features_option_filter_hook() {
	return [
		"option_{$this->option_name}",
		[ $this, 'verify_features_against_network' ],
		11,
	];
}