um_multiselect_options_{$key}

Hook type

Filter

Description

Extend multiselect options by field $key

Parameters

$options

(array) Multiselect Options

Usage

add_filter( 'um_multiselect_options_{$key}', 'function_name', 10, 1 );

Examples

<?php
add_filter( 'um_multiselect_options_{$key}', 'my_multiselect_options', 10, 1 );
function my_multiselect_options( $options ) {
    // your code here
return $options;
}
?>

Change Log

Since: 2.0

Source

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