WPSEO_Post_Type::get_accessible_post_types()public staticYoast 1.0

Returns an array with the accessible post types.

An accessible post type is a post type that is public and isn't set as no-index (robots).

Метод класса: WPSEO_Post_Type{}

Хуков нет.

Возвращает

Массив. Array with all the accessible post_types.

Использование

$result = WPSEO_Post_Type::get_accessible_post_types();

Код WPSEO_Post_Type::get_accessible_post_types() Yoast 22.4

public static function get_accessible_post_types() {
	return YoastSEO()->helpers->post_type->get_accessible_post_types();
}