filtrod 4.2.0
customize_dynamic_setting_args
Opis — z kodu źródłowego
Filters a dynamic setting's constructor args.
For a dynamic setting to be registered, this filter must be employed to override the default false value with an array of args to pass to the WP_Customize_Setting constructor.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$setting_args | false | array | The arguments to the WP_Customize_Setting constructor. |
$setting_id | string | ID for dynamic setting, usually coming from <code>$_POST['customized']</code>. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'customize_dynamic_setting_args', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'customize_dynamic_setting_args', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii