WP HOOKS
filtrod 4.9.0

customize_load_themes

Args 3Plik wp-includes/class-wp-customize-manager.phpDokumentacja WP ↗

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

ParametrTypOpis
$themesarray | \stdClassNested array or object of theme data.
$argsarrayList of arguments, such as page, search term, and tags to query for.
$manager\WP_Customize_ManagerInstance 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
}

Popularne w tej kategorii