| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
APIs to interact with global settings & styles.
| File Size: | 564 lines (20 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| wp_get_global_settings( $path = array() X-Ref |
| Gets the settings resulting of merging core, theme, and user data. param: array $path Path to the specific setting to retrieve. Optional. param: array $context { return: mixed The settings array or individual setting value to retrieve. |
| wp_get_viewport_media_queries( $viewport_settings = null, $options = array() X-Ref |
| Returns CSS media queries for responsive viewport style states. Breakpoint values are read from the viewport settings, sanitized, and normalized before the media query strings are generated. By default, the returned keys are `@mobile` and `@tablet`. When `$options['include_desktop']` is truthy, `@desktop` is included. param: mixed $viewport_settings Viewport settings from theme.json. param: array $options { return: array Responsive media queries. |
| wp_get_global_styles( $path = array() X-Ref |
| Gets the styles resulting of merging core, theme, and user data. param: array $path Path to the specific style to retrieve. Optional. param: array $context { return: mixed The styles array or individual style value to retrieve. |
| wp_get_global_stylesheet( $types = array() X-Ref |
| Returns the stylesheet resulting of merging core, theme, and user data. param: array $types Optional. Types of styles to load. return: string Stylesheet. |
| wp_add_global_styles_for_blocks() X-Ref |
| Adds global style rules to the inline style for each block. |
| wp_get_block_name_from_theme_json_path( $path ) X-Ref |
| Gets the block name from a given theme.json path. param: array $path An array of keys describing the path to a property in theme.json. return: string Identified block name, or empty string if none found. |
| wp_theme_has_theme_json() X-Ref |
| No description |
| wp_clean_theme_json_cache() X-Ref |
| Cleans the caches under the theme_json group. |
| wp_get_theme_directory_pattern_slugs() X-Ref |
| Returns the current theme's wanted patterns (slugs) to be registered from Pattern Directory. return: string[] |
| wp_get_theme_data_custom_templates() X-Ref |
| Returns the metadata for the custom templates defined by the theme via theme.json. return: array Associative array of `$template_name => $template_data` pairs, |
| wp_get_theme_data_template_parts() X-Ref |
| Returns the metadata for the template parts defined by the theme. return: array Associative array of `$part_name => $part_data` pairs, |
| wp_get_block_css_selector( $block_type, $target = 'root', $fallback = false ) X-Ref |
| Determines the CSS selector for the block type and property provided, returning it if available. param: WP_Block_Type $block_type The block's type. param: string|array $target The desired selector's target, `root` or array path. param: bool $fallback Whether to fall back to broader selector. return: string|null CSS selector or `null` if no selector available. |
| Generated : Wed Nov 11 08:20:02 2026 | Cross-referenced by PHPXref |