apply_filters( 'lp__field_group_args', $args )
Allow filter for all field group arguments during its preparation for registration.
Plugin
Namespace
Launchpad
Parameters
array
$args
Field group arguments
Return
array
Filtered field group arguments
Example
Suppose you want to change the layout of a field group to ‘block’. Here’s how you can achieve that using the lp__field_group_args filter:
add_filter( 'lp__field_group_args', function ( $args ) {
// Modify the layout of the field group
$args['layout'] = 'block';
return $args;
});
After applying this customization, the layout of the field group will be set to ‘block’, affecting its appearance or behavior as defined.