Action hook 'network_plugin_loaded'

in WP Core File wp-settings.php at line 486

View Source

network_plugin_loaded

Action Hook
Description
Fires once a single network-activated plugin has loaded.

Hook Information

File Location wp-settings.php View on GitHub
Hook Type Action
Line Number 486

Hook Parameters

Type Name Description
string $network_plugin Full path to the plugin's main file.

Usage Examples

Basic Usage
<?php
// Hook into network_plugin_loaded
add_action('network_plugin_loaded', 'my_custom_function', 10, 1);

function my_custom_function($network_plugin) {
    // Your custom code here
}

Source Code Context

wp-settings.php:486 - How this hook is used in WordPress core
<?php
 481  		 *
 482  		 * @since 5.1.0
 483  		 *
 484  		 * @param string $network_plugin Full path to the plugin's main file.
 485  		 */
 486  		do_action( 'network_plugin_loaded', $network_plugin );
 487  	}
 488  	unset( $network_plugin, $_wp_plugin_file );
 489  }
 490  
 491  /**

PHP Documentation

<?php
/**
		 * Fires once a single network-activated plugin has loaded.
		 *
		 * @since 5.1.0
		 *
		 * @param string $network_plugin Full path to the plugin's main file.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-settings.php
Related Hooks

Related hooks will be displayed here in future updates.