WPSEO_Post_Type::is_post_type_accessible
Returns whether the passed post type is considered accessible.
Метод класса: WPSEO_Post_Type{}
Хуков нет.
Возвращает
true|false. Whether or not the post type is considered accessible.
Использование
$result = WPSEO_Post_Type::is_post_type_accessible( $post_type );
- $post_type(строка) (обязательный)
- The post type to check.
Код WPSEO_Post_Type::is_post_type_accessible() WPSEO Post Type::is post type accessible Yoast 27.6
public static function is_post_type_accessible( $post_type ) {
return in_array( $post_type, self::get_accessible_post_types(), true );
}