Yoast\WP\SEO\Helpers
Post_Type_Helper::get_public_post_types()
Returns an array with the public post types.
Метод класса: Post_Type_Helper{}
Хуков нет.
Возвращает
Массив
. Array with all the public post_types.
Использование
$Post_Type_Helper = new Post_Type_Helper(); $Post_Type_Helper->get_public_post_types( $output );
- $output(строка)
- The output type to use.
По умолчанию: 'names'
Код Post_Type_Helper::get_public_post_types() Post Type Helper::get public post types Yoast 24.4
public function get_public_post_types( $output = 'names' ) { return \get_post_types( [ 'public' => true ], $output ); }