customize_allowed_urls хук-фильтрWP 3.4.0

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

Использование

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.

Список изменений

С версии 3.4.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.