akcjadynamicznyod 2.7.0
install_plugins_{$tab}
Args 1Plik wp-admin/plugin-install.php
Opis — z kodu źródłowego
Fires after the plugins list table in each tab of the Install Plugins screen.
The dynamic portion of the hook name, $tab, allows for targeting individual tabs.
Possible hook names include:
install_plugins_betainstall_plugins_favoritesinstall_plugins_featuredinstall_plugins_plugin-informationinstall_plugins_popularinstall_plugins_recommendedinstall_plugins_searchinstall_plugins_upload
Hook dynamiczny — możliwe nazwy
install_plugins_betainstall_plugins_favoritesinstall_plugins_featuredinstall_plugins_plugin-informationinstall_plugins_popularinstall_plugins_recommendedinstall_plugins_searchinstall_plugins_uploadParametry
| Parametr | Typ | Opis |
|---|---|---|
$paged | int | The current page number of the plugins list table. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'install_plugins_{$tab}', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'install_plugins_{$tab}', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii