This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This hook can be used to add your own collection of Bulk Edit options for fields in your forms. These can be found when clicking "Bulk Edit Options" in a dropdown, radio, or checkbox field.
Usage
add_filter('frm_bulk_field_choices', 'add_custom_frm_options');
Parameters
- $opts (array)
Examples
Add custom option set
You can use the example below to create a new set of preset Bulk Edit options. Change 'Set Name' to the name of your new option set. Replace Option 1, Option 2, and Option 3 with your custom options.
add_filter('frm_bulk_field_choices', 'add_custom_frm_options');
function add_custom_frm_options( $opts ){
$opts['Set Name'] = array('Option 1', 'Option 2', 'Option 3');
return $opts;
}