Filter: um_select_dropdown_dynamic_options

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

Filters dropdown dynamic options.

Parameters:
Name Type Description
$options array

Dynamic options.

$data array

Field Data.

Since:
  • 1.3.x
Source:
Returns:

Dynamic options.

Type
array
Example

Extend dropdown dynamic options.

function my_select_dropdown_dynamic_options( $options, $data ) {
    // your code here
    return $options;
}
add_filter( 'um_select_dropdown_dynamic_options', 'my_select_dropdown_dynamic_options', 10, 2 );