um_select_dropdown_dynamic_options_{$key}

Hook type

Filter

Description

Extend dropdown dynamic options by field $key

Parameters

$options

(array) Dynamic options

Usage

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

Examples

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

Change Log

Since: 2.0

Source

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