Usage
add_action( 'activate_plugin', 'your_callback_function', 10, 2 );Action Callback:
function your_callback_function( $plugin, $network_wide ) {
// Your code here
}Parameters
$pluginParameter 1
$network_wideParameter 2
⚡ Action Hook
Action hooks allow you to insert custom code at specific points during WordPress execution. Actions do not return any values.