plugins_loaded
Action HookDescription
Fires once activated plugins have loaded. Pluggable functions are also available at this point in the loading order.Hook Information
File Location |
wp-settings.php
View on GitHub
|
Hook Type | Action |
Line Number | 578 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into plugins_loaded
add_action('plugins_loaded', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-settings.php:578
- How this hook is used in WordPress core
<?php
573 *
574 * Pluggable functions are also available at this point in the loading order.
575 *
576 * @since 1.5.0
577 */
578 do_action( 'plugins_loaded' );
579
580 // Define constants which affect functionality if not already defined.
581 wp_functionality_constants();
582
583 // Add magic quotes and set up $_REQUEST ( $_GET + $_POST ).
PHP Documentation
<?php
/**
* Fires once activated plugins have loaded.
*
* Pluggable functions are also available at this point in the loading order.
*
* @since 1.5.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-settings.php
Related Hooks
Related hooks will be displayed here in future updates.