Yoast\WP\SEO\Actions\Importing\Aioseo

Aioseo_Taxonomy_Settings_Importing_Action::pluck_robot_setting_from_mapping()publicYoast 1.0

Returns a setting map of the robot setting for post category taxonomies.

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

Хуков нет.

Возвращает

Массив. The setting map of the robot setting for post category taxonomies.

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

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

Код Aioseo_Taxonomy_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'] === 'category' ) {
			return $setting;
		}
	}

	return [];
}