mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Hooks for user dashboard. props PeteMall, see #14696.
git-svn-id: https://develop.svn.wordpress.org/trunk@15900 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6a5a1b338b
commit
95332ccaa7
@ -104,6 +104,9 @@ function wp_dashboard_setup() {
|
||||
if ( is_network_admin() ) {
|
||||
do_action( 'wp_network_dashboard_setup' );
|
||||
$dashboard_widgets = apply_filters( 'wp_network_dashboard_widgets', array() );
|
||||
} elseif ( is_user_admin() ) {
|
||||
do_action( 'wp_user_dashboard_setup' );
|
||||
$dashboard_widgets = apply_filters( 'wp_user_dashboard_widgets', array() );
|
||||
} else {
|
||||
do_action( 'wp_dashboard_setup' );
|
||||
$dashboard_widgets = apply_filters( 'wp_dashboard_widgets', array() );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user