akcjaod 5.8.0
site_health_tab_content
Opis — z kodu źródłowego
Fires when outputting the content of a custom Site Health tab.
This action fires right after the Site Health header, and users are still subject to the capability checks for the Site Health page to view any custom tabs and their contents.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$tab | string | The slug of the tab that was requested. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'site_health_tab_content', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'site_health_tab_content', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii