deactivated_plugin

deactivated_plugin

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

do_action('deactivated_plugin') is found 1 times:

  • /wp-admin/includes/plugin.php line 830
    			 * @param string $plugin               Path to the plugin file relative to the plugins directory.
    			 * @param bool   $network_deactivating Whether the plugin is deactivated for all sites in the network
    			 *                                     or just the current site. Multisite only. Default false.
    			 */
    			do_action( 'deactivated_plugin', $plugin, $network_deactivating );
    		}
    	}
    
    	if ( $do_blog ) {
    		update_option( 'active_plugins', $current );
    	}
    

See this hook used in plugins: