'default-welcome-widget-instance', 'type' => 'core/welcome', 'placement' => array( 'width' => 'full', 'height' => 3, 'order' => 0, ), ); } if ( ! in_array( 'default-activity-widget-instance', $uuids, true ) ) { $dashboard_layout[] = array( 'uuid' => 'default-activity-widget-instance', 'type' => 'core/activity', 'placement' => array( 'width' => 3, 'height' => 3, 'order' => 1, ), ); } if ( ! in_array( 'default-quick-draft-widget-instance', $uuids, true ) ) { $dashboard_layout[] = array( 'uuid' => 'default-quick-draft-widget-instance', 'type' => 'core/quick-draft', 'placement' => array( 'width' => 4, 'height' => 3, 'order' => 2, ), ); } if ( ! in_array( 'default-site-health-widget-instance', $uuids, true ) ) { $dashboard_layout[] = array( 'uuid' => 'default-site-health-widget-instance', 'type' => 'core/site-health', 'placement' => array( 'width' => 2, 'height' => 2, 'order' => 3, ), ); } if ( ! in_array( 'default-preview-widget-instance', $uuids, true ) ) { $dashboard_layout[] = array( 'uuid' => 'default-preview-widget-instance', 'type' => 'core/site-preview', 'placement' => array( 'width' => 2, 'height' => 3, 'order' => 4, ), ); } return $dashboard_layout; } add_filter( 'gutenberg_dashboard_default_layout', 'gutenberg_seed_default_dashboard_layout', 10, 2 );