ACF_Admin_Internal_Post_Type_List::admin_body_class
Modifies the admin body class.
Метод класса: ACF_Admin_Internal_Post_Type_List{}
Хуки из метода
Возвращает
Строку.
Использование
$ACF_Admin_Internal_Post_Type_List = new ACF_Admin_Internal_Post_Type_List(); $ACF_Admin_Internal_Post_Type_List->admin_body_class( $classes );
- $classes(строка) (обязательный)
- Space-separated list of CSS classes.
Список изменений
| С версии 5.9.0 | Введена. |
Код ACF_Admin_Internal_Post_Type_List::admin_body_class() ACF Admin Internal Post Type List::admin body class ACF 6.4.2
public function admin_body_class( $classes ) {
$classes .= ' acf-admin-page acf-internal-post-type ' . esc_attr( $this->admin_body_class );
if ( $this->view ) {
$classes .= ' view-' . esc_attr( $this->view );
}
return apply_filters( 'acf/internal_post_type_list/admin_body_classes', $classes, $this->post_type );
}