ACF_Admin_Internal_Post_Type_List::admin_body_class
Modifies the admin body class.
Method of the class: ACF_Admin_Internal_Post_Type_List{}
Hooks from the method
Returns
string.
Usage
$ACF_Admin_Internal_Post_Type_List = new ACF_Admin_Internal_Post_Type_List(); $ACF_Admin_Internal_Post_Type_List->admin_body_class( $classes );
- $classes(string) (required)
- Space-separated list of CSS classes.
Changelog
| Since 5.9.0 | Introduced. |
ACF_Admin_Internal_Post_Type_List::admin_body_class() ACF Admin Internal Post Type List::admin body class code ACF 6.8.8
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 );
}