customize_allowed_urls filter-hookWP 3.4.0

Filters the list of URLs allowed to be clicked and followed in the Customizer preview.

Usage

add_filter( 'customize_allowed_urls', 'wp_kama_customize_allowed_urls_filter' );

/**
 * Function for `customize_allowed_urls` filter-hook.
 * 
 * @param string[] $allowed_urls An array of allowed URLs.
 *
 * @return string[]
 */
function wp_kama_customize_allowed_urls_filter( $allowed_urls ){

	// filter...
	return $allowed_urls;
}
$allowed_urls(string[])
An array of allowed URLs.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

WP_Customize_Manager::get_allowed_urls()
customize_allowed_urls
wp-includes/class-wp-customize-manager.php 4660
$allowed_urls = array_unique( apply_filters( 'customize_allowed_urls', $allowed_urls ) );

Where the hook is used in WordPress

Usage not found.