wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



_wp_get_entity_view_config_root_site › WordPress Function

Od7.2.0
Przestarzałyn/a
› _wp_get_entity_view_config_root_site ( $data )
Parametry:
  • (WP_View_Config_Data) $data The view configuration container for the entity.
    Wymagane: Tak
Powrót:
  • (WP_View_Config_Data) The updated view configuration container.
Zdefiniowane na:
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.


Źródło

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