akcjadynamicznyod 3.1.0
in_theme_update_message-{$theme_key}
Args 2Plik wp-admin/includes/update.php
Opis — z kodu źródłowego
Fires at the end of the update message container in each row of the themes list table.
The dynamic portion of the hook name, $theme_key, refers to the theme slug as found in the WordPress.org themes repository.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$theme | \WP_Theme | The WP_Theme object. |
$response | array | { An array of metadata about the available theme update. @type string $new_version New theme version. @type string $url Theme URL. @type string $package Theme update package URL. } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'in_theme_update_message-{$theme_key}', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'in_theme_update_message-{$theme_key}', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii