- class name: Group
clone
- parameters: string $key, string name = null
- returns: Group object
You can clone a field group with this method. It requires that you give it a new field group key, because they are supposed to be unique.
export
- parameters: none
- return: array
This function exports the field group object in ACF's native array format. Usually needed only for Codifier's internal purposes.
set_title
- parameters: string $title
- return: self
Sets a new title for the field group.
get_title
- parameters: none
- return: string
Returns the current title of the field group.
set_key
- parameters: string $key
- return self
Sets a new key for the field group.
get_key
- parameters: none
- return: string
Returns the current key of the field group.
set_menu_order
- parameters: int $order = 0
- return: self
Sets the menu order property for the field group.
get_menu_order
- parameters: none
- return: int
Returns the current menu order of the field group.
set_position
- parameters: string $position = 'normal'
- return: self
Sets the field group's position within the edit screen.
get_position
- parameters: none
- return: string
Returns the current value of the position property of the field group.
set_style
- parameters: string $style = 'default'
- return: self
Sets the display style parameter of the field group.
get_style
- parameters: none
- return: string
Returns the display style parameter of the field group.
set_label_placement
- parameters: string $placement = 'top'
- return: self