filtrod 2.8.0
install_theme_complete_actions
Opis — z kodu źródłowego
Filters the list of action links available following a single theme installation.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$install_actions | string[] | Array of theme action links. |
$api | object | Object containing WordPress.org API theme data. |
$stylesheet | string | Theme directory name. |
$theme_info | \WP_Theme | Theme object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'install_theme_complete_actions', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'install_theme_complete_actions', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii