07385 616 522
Call Us
07385 616 522
Notifications
Clear all

wpda_reboot_server

NED
 NED
(@ned)
Admin Admin
do_action('wpda_reboot_server', $server, $current_user->user_login);

This hook fires when an administrator reboots a server. It passes $server (the server ID) and the $current_user of whom rebooted the server.

Example:

add_action('wpda_reboot_server', 'my_function', 0, 2);

function my_function($server, $current_user){
    echo "The user {$current_user} has just rebooted server #{$server}";
}
Quote
Topic starter Posted : 16/01/2024 1:29 am
Share: