ACF_Admin_Field_Groups::get_admin_table_post_classes
Gets the class(es) to be used by field groups in the list table.
Method of the class: ACF_Admin_Field_Groups{}
Hooks from the method
Returns
array.
Usage
$ACF_Admin_Field_Groups = new ACF_Admin_Field_Groups(); $ACF_Admin_Field_Groups->get_admin_table_post_classes( $classes, $css_class, $post_id );
- $classes(array) (required)
- An array of the classes used by the field group.
- $css_class(array) (required)
- An array of additional classes added to the field group.
- $post_id(int) (required)
- The ID of the field group.
Changelog
| Since 6.2.8 | Introduced. |
ACF_Admin_Field_Groups::get_admin_table_post_classes() ACF Admin Field Groups::get admin table post classes code ACF 6.8.8
public function get_admin_table_post_classes( $classes, $css_class, $post_id ) {
// Bail early if not in the field group list table.
if ( ! is_admin() || $this->post_type !== get_post_type( $post_id ) ) {
return $classes;
}
return apply_filters( 'acf/field_group/list_table_classes', $classes, $css_class, $post_id );
}