Action hook 'wp_user_dashboard_setup'

in WP Core File wp-admin/includes/dashboard.php at line 118

View Source

wp_user_dashboard_setup

Action Hook
Description
Fires after core widgets for the User Admin dashboard have been registered.

Hook Information

File Location wp-admin/includes/dashboard.php View on GitHub
Hook Type Action
Line Number 118

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

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

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

Source Code Context

wp-admin/includes/dashboard.php:118 - How this hook is used in WordPress core
<?php
 113  		/**
 114  		 * Fires after core widgets for the User Admin dashboard have been registered.
 115  		 *
 116  		 * @since 3.1.0
 117  		 */
 118  		do_action( 'wp_user_dashboard_setup' );
 119  
 120  		/**
 121  		 * Filters the list of widgets to load for the User Admin dashboard.
 122  		 *
 123  		 * @since 3.1.0

PHP Documentation

<?php
/**
		 * Fires after core widgets for the User Admin dashboard have been registered.
		 *
		 * @since 3.1.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.