akcjadynamicznyod 3.5.0
after_theme_row_{$stylesheet}
Args 3Plik wp-admin/includes/class-wp-ms-themes-list-table.php
Opis — z kodu źródłowego
Fires after each specific row in the Multisite themes list table.
The dynamic portion of the hook name, $stylesheet, refers to the directory name of the theme, most often synonymous with the template name of the theme.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$stylesheet | string | Directory name of the theme. |
$theme | \WP_Theme | Current WP_Theme object. |
$status | string | Status of the theme. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'after_theme_row_{$stylesheet}', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'after_theme_row_{$stylesheet}', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii