Filter: um_multiselect_options_{$type}

apply_filters( 'um_multiselect_options_{$type}', $options, $data ) → {array}

Filters multiselect options by field $type.

Parameters:
Name Type Description
$options array

Multiselect Options.

$data array

Field Data.

Since:
  • 1.3.x
Source:
Returns:

Multiselect Options.

Type
array
Example

Extend multiselect options.

function my_multiselect_options( $options, $data ) {
    // your code here
    return $options;
}
add_filter( 'um_multiselect_options_{$type}', 'my_multiselect_options', 10, 2 );