um_multiselect_options_{$type}

Hook type

Filter

Description

Extend multiselect options by field $type

Parameters

$options

(array) Multiselect Options

$data

(array) Field Data

Usage

add_filter( 'um_multiselect_options_{$type}', 'function_name', 10, 2 );

Examples

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

Change Log

Since: 2.0

Source

um_multiselect_options_{$type} is located in includes/core/class-fields.php::line 2650