WPSEO_Cornerstone_Filter::get_post_types()protectedYoast 1.0

Returns the post types to which this filter should be added.

{} Это метод класса: WPSEO_Cornerstone_Filter{}

Хуки из метода

Возвращает

Массив. The post types to which this filter should be added.

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

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

Код WPSEO_Cornerstone_Filter::get_post_types() Yoast 19.7.1

protected function get_post_types() {
	/**
	 * Filter: 'wpseo_cornerstone_post_types' - Filters post types to exclude the cornerstone feature for.
	 *
	 * @api array - The accessible post types to filter.
	 */
	$post_types = apply_filters( 'wpseo_cornerstone_post_types', parent::get_post_types() );
	if ( ! is_array( $post_types ) ) {
		return [];
	}

	return $post_types;
}