wpseek.com
A WordPress-centric search engine for devs and theme authors



_wp_get_entity_view_config_root_site › WordPress Function

Since7.2.0
Deprecatedn/a
_wp_get_entity_view_config_root_site ( $data )
Parameters:
  • (WP_View_Config_Data) $data The view configuration container for the entity.
    Required: Yes
Returns:
  • (WP_View_Config_Data) The updated view configuration container.
Defined at:
Codex:

Provides the view configuration for the `root`/`site` entity.

The site settings are a singleton record edited through a form (the site editor's Identity screen) rather than listed in a view, so only the form is defined here. The generic default_view, default_layouts, and view_list built by wp_get_entity_view_config() are left untouched.


Source

function _wp_get_entity_view_config_root_site( $data ) {
	return $data->set(
		array(
			'form' => array(
				'layout' => array(
					'type'          => 'regular',
					'labelPosition' => 'top',
				),
				'fields' => array(
					'title',
					'description',
					'site_logo',
					'site_icon',
				),
			),
		),
		1
	);
}