acf_third_party::ee_get_post_types()
acf_get_post_types
EE post types do not use the native post.php edit page, but instead render their own. Show the EE post types in lists where 'show_ui' is used.
Метод класса: acf_third_party{}
Хуков нет.
Возвращает
Массив
.
Использование
$acf_third_party = new acf_third_party(); $acf_third_party->ee_get_post_types( $post_types, $args );
- $post_types(массив) (обязательный)
- -
- $args(массив) (обязательный)
- -
Список изменений
С версии 5.6.9 | Введена. |
Код acf_third_party::ee_get_post_types() acf third party::ee get post types ACF 6.0.4
function ee_get_post_types( $post_types, $args ) { if ( ! empty( $args['show_ui'] ) ) { $ee_post_types = get_post_types( array( 'show_ee_ui' => 1 ) ); $ee_post_types = array_keys( $ee_post_types ); $post_types = array_merge( $post_types, $ee_post_types ); $post_types = array_unique( $post_types ); } // return return $post_types; }