filtrod 4.5.0
customize_dynamic_partial_class
Opis — z kodu źródłowego
Filters the class used to construct partials.
Allow non-statically created partials to be constructed with custom WP_Customize_Partial subclass.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$partial_class | string | WP_Customize_Partial or a subclass. |
$partial_id | string | ID for dynamic partial. |
$partial_args | array | The arguments to the WP_Customize_Partial constructor. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'customize_dynamic_partial_class', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'customize_dynamic_partial_class', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii