Yoast\WP\SEO\Actions\Importing\Aioseo

Aioseo_Posts_Importing_Action::get_needed_robot_data()publicYoast 1.0

Populates the needed robot data array to be used in validating against its structure.

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

Хуков нет.

Возвращает

Массив. The needed data array that contains all the needed columns.

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

$Aioseo_Posts_Importing_Action = new Aioseo_Posts_Importing_Action();
$Aioseo_Posts_Importing_Action->get_needed_robot_data();

Код Aioseo_Posts_Importing_Action::get_needed_robot_data() Yoast 19.2

public function get_needed_robot_data() {
	$needed_robot_data = [];

	foreach ( $this->aioseo_to_yoast_map as $yoast_mapping ) {
		if ( isset( $yoast_mapping['robot_type'] ) ) {
			$needed_robot_data[] = $yoast_mapping['robot_type'];
		}
	}

	return $needed_robot_data;
}