apply_filters( 'lp__field_group_args/{key}' )
Allow filter for specific 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 title of a field group that has a key value settings. Here’s how you can achieve that using the lp__field_group_args/{key} filter:
add_filter( 'lp__field_group_args/settings', function ( $args ) {
// Modify the title of the field group
$args['title'] = 'Settings New Title';
return $args;
});
After applying this customization, the title of the field group will be changed to ‘Settings New Title’, providing a custom label for users interacting with the field group.