um_custom_dropdown_options_source_url__{$form_key}

Hook type

Filter

Description

Change custom dropdown options source URL by $form_key

Parameters

$url

(string) Dropdown options source URL

$data

(array) Field Data

Usage

add_filter( 'um_custom_dropdown_options_source_url__{$form_key}', 'function_name', 10, 2 );

Examples

<?php
add_filter( 'um_custom_dropdown_options_source_url__{$form_key}', 'my_custom_dropdown_options_source_url', 10, 2 );
function my_custom_dropdown_options_source( $url, $data ) {
    // your code here
return $url;
}
?>

Change Log

Since: 2.0

Source

um_custom_dropdown_options_source_url__{$form_key} is located in includes/core/class-fields.php::line 2375