wp_dashboard_setup
Action HookDescription
Fires after core widgets for the admin dashboard have been registered.Hook Information
File Location |
wp-admin/includes/dashboard.php
View on GitHub
|
Hook Type | Action |
Line Number | 135 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into wp_dashboard_setup
add_action('wp_dashboard_setup', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-admin/includes/dashboard.php:135
- How this hook is used in WordPress core
<?php
130 /**
131 * Fires after core widgets for the admin dashboard have been registered.
132 *
133 * @since 2.5.0
134 */
135 do_action( 'wp_dashboard_setup' );
136
137 /**
138 * Filters the list of widgets to load for the admin dashboard.
139 *
140 * @since 2.5.0
PHP Documentation
<?php
/**
* Fires after core widgets for the admin dashboard have been registered.
*
* @since 2.5.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-admin/includes/dashboard.php
Related Hooks
Related hooks will be displayed here in future updates.