WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Action Reference/plugins loaded

Description

This hook is called once any activated plugins have been loaded. Is generally used for immediate filter setup, or plugin overrides.

The plugins_loaded action hook fires early, and precedes the setup_theme, after_setup_theme, init and wp_loaded action hooks.

Parameters

There are no arguments passed to this hook.

Usage

<?php add_action( 'plugins_loaded', 'function_name' ); ?>

where "function_name" is the name of the function to be called.

Examples

<?php
add_action( 'plugins_loaded', 'my_plugin_override' );

function my_plugin_override() {
    // your code here
}
?>

Change Log

Source

plugins_loaded is located in wp-settings.php.

Related

This page is marked as incomplete. You can help Codex by expanding it.