filtrod 3.4.0
theme_install_actions
Opis — z kodu źródłowego
Filters the install action links for a theme in the Install Themes list table.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$actions | string[] | An array of theme action links. Defaults are links to Install Now, Preview, and Details. |
$theme | \stdClass | An object that contains theme data returned by the WordPress.org API. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'theme_install_actions', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'theme_install_actions', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii