Filter: um_custom_dropdown_options_parent__{$form_key}

apply_filters( 'um_custom_dropdown_options_parent__{$form_key}', $parent, $data ) → {string}

Filters parent dropdown relationship by $form_key.

Parameters:
Name Type Description
$parent string

Parent dropdown relationship.

$data array

Field Data.

Since:
  • 1.3.x
Source:
Returns:

Parent dropdown relationship.

Type
string
Example

Change parent dropdown relationship.

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