akcjadynamicznyod 3.1.0
network_admin_edit_{$action}
Args 0Plik wp-admin/network/edit.php
Opis — z kodu źródłowego
Fires the requested handler action.
The dynamic portion of the hook name, $action, refers to the name of the requested action derived from the GET request.
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'network_admin_edit_{$action}', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'network_admin_edit_{$action}', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}