Action hook 'ms_loaded'

in WP Core File wp-includes/ms-settings.php at line 128

View Source

ms_loaded

Action Hook
Description
Fires after the current site and network have been detected and loaded in multisite's bootstrap.

Hook Information

File Location wp-includes/ms-settings.php View on GitHub
Hook Type Action
Line Number 128

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

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

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

Source Code Context

wp-includes/ms-settings.php:128 - How this hook is used in WordPress core
<?php
 123   * Fires after the current site and network have been detected and loaded
 124   * in multisite's bootstrap.
 125   *
 126   * @since 4.6.0
 127   */
 128  do_action( 'ms_loaded' );

PHP Documentation

<?php
/**
 * Fires after the current site and network have been detected and loaded
 * in multisite's bootstrap.
 *
 * @since 4.6.0
 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-includes/ms-settings.php
Related Hooks

Related hooks will be displayed here in future updates.