filtrod 5.5.0
install_theme_overwrite_comparison
Opis — z kodu źródłowego
Filters the compare table output for overwriting a theme package on upload.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$table | string | The output table with Name, Version, Author, RequiresWP, and RequiresPHP info. |
$current_theme_data | \WP_Theme | Active theme data. |
$new_theme_data | array | Array with uploaded theme data. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'install_theme_overwrite_comparison', '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( 'install_theme_overwrite_comparison', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii