Filter: um_selectbox_options

apply_filters( 'um_selectbox_options', $options, $key ) → {array}

Filters dropdown options.

Parameters:
Name Type Description
$options array

Field options.

$key string

Field metakey.

Since:
  • 2.0
Source:
Returns:

Field options.

Type
array
Example

Extend dropdown options.

function my_um_selectbox_options( $options, $key ) {
    // your code here
    return $options;
}
add_filter( 'um_selectbox_options', 'my_um_selectbox_options', 10, 2 );