Yoast\WP\SEO\Integrations\Watchers
Indexable_Permalink_Watcher::get_post_types() protected Yoast 1.0
Retrieves a list with the public post types.
{} Это метод класса: Indexable_Permalink_Watcher{}
Хуки из метода
Возвращает
Массив. The post types.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_post_types();
Код Indexable_Permalink_Watcher::get_post_types() Indexable Permalink Watcher::get post types Yoast 15.6.2
protected function get_post_types() {
/**
* Filter: Gives the possibility to filter out post types.
*
* @param array $post_types The post type names.
*
* @return array The post types.
*/
$post_types = \apply_filters( 'wpseo_post_types_reset_permalinks', $this->post_type->get_public_post_types() );
return $post_types;
}