WPSEO_Option::add_default_filters_if_same_option()publicYoast 1.0

Adds back the default filters that were removed during validation if the option was changed. Checks if this option was changed to prevent constantly checking if filters are present.

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

Хуков нет.


null. Ничего.


$WPSEO_Option = new WPSEO_Option();
$WPSEO_Option->add_default_filters_if_same_option( $option_name );
$option_name(строка) (обязательный)
The option name.

Код WPSEO_Option::add_default_filters_if_same_option() Yoast 19.7.2

public function add_default_filters_if_same_option( $option_name ) {
	if ( $option_name === $this->option_name ) {