um_custom_dropdown_options_source__{$form_key}
Hook type
Filter
Description
Change custom dropdown options source by $form_key
Parameters
$source
(string) Dropdown options source
$data
(array) Field Data
Usage
add_filter( 'um_custom_dropdown_options_source__{$form_key}', 'function_name', 10, 2 );
Examples
<?php add_filter( 'um_custom_dropdown_options_source__{$form_key}', 'my_custom_dropdown_options_source', 10, 2 ); function my_custom_dropdown_options_source( $source, $data ) { // your code here return $source; } ?>
Change Log
Since: 2.0
Source
um_custom_dropdown_options_source__{$form_key}
is located in includes/core/class-fields.php::line 2351