Core Function
View Source on Trac ↗ wp_get_global_settings()
wp_get_global_settings( mixed $path = array(), mixed $context = array() ) Gets the settings resulting of merging core, theme, and user data.
Parameters 2 required
| Name / Type | Description |
|---|---|
| array | $path Path to the specific setting to retrieve. Optional. If empty, will return all settings. Required |
| array | $context { Metadata to know where to retrieve the $path from. Optional. Required |
Return Value
(mixed)
The settings array or individual setting value to retrieve.
Function Information
Since Version
5.9.0
Source File
wp-includes/global-styles-and-settings.php
Advertisement