filtrod 4.9.0
customize_load_themes
Opis — z kodu źródłowego
Filters the theme data loaded in the customizer.
This allows theme data to be loading from an external source, or modification of data loaded from wp_prepare_themes_for_js() or WordPress.org via themes_api().
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$themes | array | \stdClass | Nested array or object of theme data. |
$args | array | List of arguments, such as page, search term, and tags to query for. |
$manager | \WP_Customize_Manager | Instance of Customize manager. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'customize_load_themes', '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_load_themes', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii