Yoast\WP\SEO\Helpers

Indexable_To_Postmeta_Helper::map_to_postmeta()publicYoast 1.0

Creates postmeta from a Yoast indexable.

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

Хуков нет.

Возвращает

null. Ничего.

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

$Indexable_To_Postmeta_Helper = new Indexable_To_Postmeta_Helper();
$Indexable_To_Postmeta_Helper->map_to_postmeta( $indexable );
$indexable(Indexable) (обязательный)
The Yoast indexable.

Код Indexable_To_Postmeta_Helper::map_to_postmeta() Yoast 19.11

public function map_to_postmeta( $indexable ) {
	foreach ( $this->yoast_to_postmeta as $indexable_column => $map_info ) {
		\call_user_func( [ $this, $map_info['map_method'] ], $indexable, $map_info['post_meta_key'], $indexable_column );
	}
}