WPSEO_Option_Wpseo::add_option_filters()publicYoast 1.0

Add filters to make sure that the option is merged with its defaults before being returned.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WPSEO_Option_Wpseo = new WPSEO_Option_Wpseo();
$WPSEO_Option_Wpseo->add_option_filters();

Код WPSEO_Option_Wpseo::add_option_filters() Yoast 19.7.1

public function add_option_filters() {
	parent::add_option_filters();

	list( $hookname, $callback, $priority ) = $this->get_verify_features_option_filter_hook();

	if ( has_filter( $hookname, $callback ) === false ) {
		add_filter( $hookname, $callback, $priority );
	}
}