filtrod 3.4.0
customize_allowed_urls
Opis — z kodu źródłowego
Filters the list of URLs allowed to be clicked and followed in the Customizer preview.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$allowed_urls | string[] | An array of allowed URLs. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'customize_allowed_urls', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'customize_allowed_urls', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii