Yoast\WP\SEO\Actions\Importing\Aioseo

Aioseo_Default_Archive_Settings_Importing_Action::pluck_robot_setting_from_mapping()publicYoast 1.0

Returns a setting map of the robot setting for author archives.

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

Хуков нет.

Возвращает

Массив. The setting map of the robot setting for author archives.

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

$Aioseo_Default_Archive_Settings_Importing_Action = new Aioseo_Default_Archive_Settings_Importing_Action();
$Aioseo_Default_Archive_Settings_Importing_Action->pluck_robot_setting_from_mapping();

Код Aioseo_Default_Archive_Settings_Importing_Action::pluck_robot_setting_from_mapping() Yoast 19.2

public function pluck_robot_setting_from_mapping() {
	$this->build_mapping();

	foreach ( $this->aioseo_options_to_yoast_map as $setting ) {
		// Return the first archive setting map.
		if ( $setting['transform_method'] === 'import_noindex' && isset( $setting['subtype'] ) && $setting['subtype'] === 'author' ) {
			return $setting;
		}
	}

	return [];
}