WPSEO_Import_Squirrly::import()protectedYoast 1.0

Imports the post meta values to Yoast SEO.

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

Хуков нет.

Возвращает

true|false. Import success status.

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

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

Код WPSEO_Import_Squirrly::import() Yoast 22.4

protected function import() {
	$results = $this->retrieve_posts();
	foreach ( $results as $post ) {
		$return = $this->import_post_values( $post->identifier );
		if ( ! $return ) {
			return false;
		}
	}

	return true;
}