Action hook 'muplugins_loaded'

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

View Source

muplugins_loaded

Action Hook
Description
Fires once all must-use and network-activated plugins have loaded.

Hook Information

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

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into muplugins_loaded
add_action('muplugins_loaded', 'my_custom_function');

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

Source Code Context

wp-settings.php:496 - How this hook is used in WordPress core
<?php
 491  /**
 492   * Fires once all must-use and network-activated plugins have loaded.
 493   *
 494   * @since 2.8.0
 495   */
 496  do_action( 'muplugins_loaded' );
 497  
 498  if ( is_multisite() ) {
 499  	ms_cookie_constants();
 500  }
 501  

PHP Documentation

<?php
/**
 * Fires once all must-use and network-activated plugins have loaded.
 *
 * @since 2.8.0
 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-settings.php
Related Hooks

Related hooks will be displayed here in future updates.