WPSEO_Cornerstone_Filter::get_post_types
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() WPSEO Cornerstone Filter::get post types Yoast 27.3
protected function get_post_types() {
/**
* Filter: 'wpseo_cornerstone_post_types' - Filters post types to exclude the cornerstone feature for.
*
* @param array $post_types 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;
}