Hooks for user dashboard. props PeteMall, see #14696.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c64766e6f2
commit
09570f0114
|
@ -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