Yoast\WP\SEO\Actions\Importing\Aioseo

Abstract_Aioseo_Settings_Importing_Action::import_noindex()publicYoast 1.0

Imports the noindex setting, taking into consideration whether they defer to global defaults.

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

Хуков нет.

Возвращает

true|false. The noindex setting.

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

$Abstract_Aioseo_Settings_Importing_Action = new Abstract_Aioseo_Settings_Importing_Action();
$Abstract_Aioseo_Settings_Importing_Action->import_noindex( $noindex, $mapping );
$noindex(true|false) (обязательный)
The noindex of the type, without taking into consideration whether the type defers to global defaults.
$mapping(массив) (обязательный)
The mapping of the setting we're working with.

Код Abstract_Aioseo_Settings_Importing_Action::import_noindex() Yoast 19.2

public function import_noindex( $noindex, $mapping ) {
	return $this->robots_transformer->transform_robot_setting( 'noindex', $noindex, $mapping );
}