Yoast\WP\SEO\Actions\Importing\Aioseo

Aioseo_Default_Archive_Settings_Importing_Action::build_mapping()protectedYoast 1.0

Builds the mapping that ties AOISEO option keys with Yoast ones and their data transformation method.

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

Хуков нет.

Возвращает

null. Ничего.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->build_mapping();

Код Aioseo_Default_Archive_Settings_Importing_Action::build_mapping() Yoast 19.11

protected function build_mapping() {
	$this->aioseo_options_to_yoast_map = [
		'/author/title'                       => [
			'yoast_name'       => 'title-author-wpseo',
			'transform_method' => 'simple_import',
		],
		'/author/metaDescription'             => [
			'yoast_name'       => 'metadesc-author-wpseo',
			'transform_method' => 'simple_import',
		],
		'/date/title'                         => [
			'yoast_name'       => 'title-archive-wpseo',
			'transform_method' => 'simple_import',
		],
		'/date/metaDescription'               => [
			'yoast_name'       => 'metadesc-archive-wpseo',
			'transform_method' => 'simple_import',
		],
		'/search/title'                       => [
			'yoast_name'       => 'title-search-wpseo',
			'transform_method' => 'simple_import',
		],
		'/author/advanced/robotsMeta/noindex' => [
			'yoast_name'       => 'noindex-author-wpseo',
			'transform_method' => 'import_noindex',
			'type'             => 'archives',
			'subtype'          => 'author',
			'option_name'      => 'aioseo_options',
		],
		'/date/advanced/robotsMeta/noindex'   => [
			'yoast_name'       => 'noindex-archive-wpseo',
			'transform_method' => 'import_noindex',
			'type'             => 'archives',
			'subtype'          => 'date',
			'option_name'      => 'aioseo_options',
		],
	];
}