WPSEO_Meta_Columns::get_meta()protectedYoast 1.0

Returns the meta object for a given post ID.

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

Хуков нет.

Возвращает

Meta. The meta object.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_meta( $post_id );
$post_id(int) (обязательный)
The post ID.

Код WPSEO_Meta_Columns::get_meta() Yoast 22.4

protected function get_meta( $post_id ) {
	$indexable = $this->admin_columns_cache->get_indexable( $post_id );

	return YoastSEO()->meta->for_indexable( $indexable, 'Post_Type' );
}