wp_dashboard_widgets

wp_dashboard_widgets

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.5

apply_filters('wp_dashboard_widgets') is found 1 times:

  • /wp-admin/includes/dashboard.php line 144
    		 * @since 2.5.0
    		 *
    		 * @param string[] $dashboard_widgets An array of dashboard widget IDs.
    		 */
    		$dashboard_widgets = apply_filters( 'wp_dashboard_widgets', array() );
    	}
    
    	foreach ( $dashboard_widgets as $widget_id ) {
    		$name = empty( $wp_registered_widgets[ $widget_id ]['all_link'] ) ? $wp_registered_widgets[ $widget_id ]['name'] : $wp_registered_widgets[ $widget_id ]['name'] . " <a href='{$wp_registered_widgets&#91;$widget_id&#93;&#91;'all_link'&#93;}' class='edit-box open-box'>" . __( 'View all' ) . '</a>';
    		wp_add_dashboard_widget( $widget_id, $name, $wp_registered_widgets[ $widget_id ]['callback'], $wp_registered_widget_controls[ $widget_id ]['callback'] );
    	}