Filter: um_custom_dropdown_options_source__{$form_key}

apply_filters( 'um_custom_dropdown_options_source__{$form_key}', $source, $data ) → {string}

Filters a custom dropdown options source by $form_key.

Parameters:
Name Type Description
$source string

Dropdown options source.

$data array

Field Data.

Since:
  • 1.3.x
Source:
Returns:

Dropdown options source.

Type
string
Example

Change custom dropdown options source.

function function_name( $source, $data ) {
    // your code here
    return $source;
}
add_filter( 'um_custom_dropdown_options_source__{$form_key}', 'function_name', 10, 2 );