WPSEO_Abstract_Post_Filter::is_supported_post_type
Checks if the post type is supported.
Метод класса: WPSEO_Abstract_Post_Filter{}
Хуков нет.
Возвращает
true|false. True when it is supported.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->is_supported_post_type( $post_type );
- $post_type(строка) (обязательный)
- Post type to check against.
Код WPSEO_Abstract_Post_Filter::is_supported_post_type() WPSEO Abstract Post Filter::is supported post type Yoast 26.5
protected function is_supported_post_type( $post_type ) {
return in_array( $post_type, $this->get_post_types(), true );
}