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