quform_bulk_options

This hook can be used to add custom bulk options to the Add bulk options feature of the Select menu, Checkboxes, Radio buttons and Multi select elements.

quform_bulk_options

Example

1
234
5678
9
10
11
12
add_filter('quform_bulk_options', function ($options) {
    $options['my-bulk-options'] = array(        'name' => 'My Bulk Options',        'options' => array(
            'My Option 1',            'My Option 2',            'My Option 3'        )
    );
 
    return $options;
});
add_filter('quform_bulk_options', function ($options) {
    $options['my-bulk-options'] = array(
        'name' => 'My Bulk Options',
        'options' => array(
            'My Option 1',
            'My Option 2',
            'My Option 3'
        )
    );

    return $options;
});
  • On line 2, replace my-bulk-options with a unique key for the bulk options
  • On line 3, replace My Bulk Options with a name of the bulk options
  • On lines 5, 6 and 7, set the available options
1
2
345
6789
10
11
12
13
14
function my_add_bulk_options($options)
{
    $options['my-bulk-options'] = array(        'name' => 'My Bulk Options',        'options' => array(
            'My Option 1',            'My Option 2',            'My Option 3'        )
    );
 
    return $options;
}
add_filter('quform_bulk_options', 'my_add_bulk_options');
function my_add_bulk_options($options)
{
    $options['my-bulk-options'] = array(
        'name' => 'My Bulk Options',
        'options' => array(
            'My Option 1',
            'My Option 2',
            'My Option 3'
        )
    );

    return $options;
}
add_filter('quform_bulk_options', 'my_add_bulk_options');
  • On line 3, replace my-bulk-options with a unique key for the bulk options
  • On line 4, replace My Bulk Options with a name of the bulk options
  • On lines 6, 7 and 8, set the available options

Parameters

  • $optionsarray – the existing bulk options
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy