Yoast\WP\SEO\Introductions\Application

Introductions_Collector::get_metadata()privateYoast 1.0

Retrieves the introductions metadata for the user.

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

Хуков нет.

Возвращает

Массив. The introductions' metadata.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_metadata( $user_id );
$user_id(int) (обязательный)
The user ID.

Код Introductions_Collector::get_metadata() Yoast 24.4

private function get_metadata( $user_id ) {
	$metadata = \get_user_meta( $user_id, Introductions_Seen_Repository::USER_META_KEY, true );
	if ( \is_array( $metadata ) ) {
		return $metadata;
	}

	return [];
}