activated_plugin

activated_plugin

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('activated_plugin') is found 1 times:

  • /wp-admin/includes/plugin.php line 730
    			 * @param string $plugin       Path to the plugin file relative to the plugins directory.
    			 * @param bool   $network_wide Whether to enable the plugin for all sites in the network
    			 *                             or just the current site. Multisite only. Default false.
    			 */
    			do_action( 'activated_plugin', $plugin, $network_wide );
    		}
    
    		if ( ob_get_length() > 0 ) {
    			$output = ob_get_clean();
    			return new WP_Error( 'unexpected_output', __( 'The plugin generated unexpected output.' ), $output );
    		}
    

See this hook used in plugins: