customize_allowed_urls
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
customize_allowed_urls
wp-includes/class-wp-customize-manager.php 4665
$allowed_urls = array_unique( apply_filters( 'customize_allowed_urls', $allowed_urls ) );