ACF_Admin_Field_Groups::get_admin_table_post_classes
Gets the class(es) to be used by field groups in the list table.
Метод класса: ACF_Admin_Field_Groups{}
Хуки из метода
Возвращает
Массив.
Использование
$ACF_Admin_Field_Groups = new ACF_Admin_Field_Groups(); $ACF_Admin_Field_Groups->get_admin_table_post_classes( $classes, $css_class, $post_id );
- $classes(массив) (обязательный)
- An array of the classes used by the field group.
- $css_class(массив) (обязательный)
- An array of additional classes added to the field group.
- $post_id(int) (обязательный)
- The ID of the field group.
Список изменений
| С версии 6.2.8 | Введена. |
Код ACF_Admin_Field_Groups::get_admin_table_post_classes() ACF Admin Field Groups::get admin table post classes ACF 6.4.2
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 );
}