um_multiselect_options

Hook type

Filter

Description

Extend multiselect options

Parameters

$options

(array) Multiselect Options

$data

(array) Field Data

Usage

add_filter( 'um_multiselect_options', 'function_name', 10, 2 );

Examples

<?php
add_filter( 'um_multiselect_options', 'my_multiselect_options', 10, 2 );
function my_multiselect_options( $options, $data ) {
    // your code here
return $options;
}
?>

Change Log

Since: 2.0

Source

um_multiselect_options is located in includes/core/class-fields.php::line 2607