wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



_wp_get_entity_view_config_root_site › WordPress Function

Seit7.2.0
Veraltetn/v
_wp_get_entity_view_config_root_site ( $data )
Parameter:
  • (WP_View_Config_Data) $data The view configuration container for the entity.
    Erforderlich: Ja
Gibt zurück:
  • (WP_View_Config_Data) The updated view configuration container.
Definiert in:
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.


Quellcode

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
	);
}