Yoast\WP\SEO\User_Meta\Application

Custom_Meta_Collector::get_non_empty_custom_meta()publicYoast 1.0

Returns the custom meta that can't be empty.

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

Хуков нет.

Возвращает

Массив<Строку>. The custom meta that can't be empty.

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

$Custom_Meta_Collector = new Custom_Meta_Collector();
$Custom_Meta_Collector->get_non_empty_custom_meta(): array;

Код Custom_Meta_Collector::get_non_empty_custom_meta() Yoast 25.0

public function get_non_empty_custom_meta(): array {
	$non_empty_custom_meta = [];
	foreach ( $this->custom_meta as $custom_meta ) {
		if ( ! $custom_meta->is_empty_allowed() ) {
			$non_empty_custom_meta[] = $custom_meta->get_key();
		}
	}

	return $non_empty_custom_meta;
}