WPSEO_Post_Type::is_post_type_accessible()public staticYoast 1.0

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() Yoast 22.4

public static function is_post_type_accessible( $post_type ) {
	return in_array( $post_type, self::get_accessible_post_types(), true );
}