Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Mobile
    • Hosting
    • Openverse ↗︎
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • Developers
    • WordPress.tv ↗︎
  • Community
    • Make WordPress
    • Photo Directory
    • Five for the Future
    • WordCamp ↗︎
    • Meetups ↗︎
    • Job Board ↗︎
  • About
    • About WordPress
    • Showcase
    • Enterprise
    • Gutenberg ↗︎
    • WordPress Swag Store ↗︎
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/class-wp-theme-json.php

WP_Theme_JSON::remove_indirect_properties()

Method: Removes indirect properties from the given input node and sets in the given output node.

Source: wp-includes/class-wp-theme-json.php:3045

Used by 0 functions | Uses 2 functions

WP_Theme_JSON::update_separator_declarations()

Method: Returns a filtered declarations array if there is a separator block with only a background style defined in theme.json by adding a color attribute to reflect the changes in the front.

Source: wp-includes/class-wp-theme-json.php:2149

Used by 0 functions | Uses 0 functions

WP_Theme_JSON::process_blocks_custom_css()

Method: Processes the CSS, to apply nesting.

Source: wp-includes/class-wp-theme-json.php:1085

Used by 1 function | Uses 0 functions

WP_Theme_JSON::get_custom_css()

Method: Returns the global styles custom css.

Source: wp-includes/class-wp-theme-json.php:1105

Used by 0 functions | Uses 2 functions

WP_Theme_JSON::set_spacing_sizes()

Method: Sets the spacingSizes array based on the spacingScale values from theme.json.

Source: wp-includes/class-wp-theme-json.php:3326

Used by 0 functions | Uses 4 functions

WP_Theme_JSON::get_styles_for_block()

Method: Gets the CSS rules for a particular block from theme.json.

Source: wp-includes/class-wp-theme-json.php:2269

Used by 0 functions | Uses 2 functions

WP_Theme_JSON::get_root_layout_rules()

Method: Outputs the CSS for layout rules on the root.

Source: wp-includes/class-wp-theme-json.php:2465

Used by 1 function | Uses 2 functions

wp_theme_json_get_style_nodes

Filter Hook: Filters the list of style nodes with metadata.

Source: wp-includes/class-wp-theme-json.php:2126

Used by 1 function | Uses 0 functions

WP_Theme_JSON::get_styles_block_nodes()

Method: A public helper to get the block nodes from a theme.json file.

Source: wp-includes/class-wp-theme-json.php:2136

Used by 0 functions | Uses 0 functions

WP_Theme_JSON::get_block_nodes()

Method: An internal method to get the block nodes from a theme.json file.

Source: wp-includes/class-wp-theme-json.php:2186

Used by 0 functions | Uses 0 functions

WP_Theme_JSON::get_layout_styles()

Method: Gets the CSS layout rules for a particular block from theme.json layout definitions.

Source: wp-includes/class-wp-theme-json.php:1213

Used by 3 functions | Uses 5 functions

WP_Theme_JSON::get_element_class_name()

Method: Returns a class name by an element name.

Source: wp-includes/class-wp-theme-json.php:535

Used by 1 function | Uses 0 functions

WP_Theme_JSON::get_patterns()

Method: Returns the current theme’s wanted patterns(slugs) to be registered from Pattern Directory.

Source: wp-includes/class-wp-theme-json.php:3169

Used by 0 functions | Uses 0 functions

WP_Theme_JSON::get_data()

Method: Returns a valid theme.json as provided by a theme.

Source: wp-includes/class-wp-theme-json.php:3186

Used by 0 functions | Uses 3 functions

WP_Theme_JSON::get_svg_filters()

Method: Converts all filter (duotone) presets into SVGs.

Source: wp-includes/class-wp-theme-json.php:2673

Used by 0 functions | Uses 1 function

WP_Theme_JSON::get_metadata_boolean()

Method: For metadata values that can either be booleans or paths to booleans, gets the value.

Source: wp-includes/class-wp-theme-json.php:2556

Used by 0 functions | Uses 1 function

WP_Theme_JSON::should_override_preset()

Method: Determines whether a presets should be overridden or not.

Source: wp-includes/class-wp-theme-json.php:2710

Used by 0 functions | Uses 2 functions

WP_Theme_JSON::get_default_slugs()

Method: Returns the default slugs for all the presets in an associative array whose keys are the preset paths and the leafs is the list of slugs.

Source: wp-includes/class-wp-theme-json.php:2764

Used by 0 functions | Uses 2 functions

WP_Theme_JSON::get_name_from_defaults()

Method: Gets a `default`’s preset name by a provided slug.

Source: wp-includes/class-wp-theme-json.php:2801

Used by 0 functions | Uses 1 function

WP_Theme_JSON::filter_slugs()

Method: Removes the preset values whose slug is equal to any of given slugs.

Source: wp-includes/class-wp-theme-json.php:2825

Used by 0 functions | Uses 0 functions

WP_Theme_JSON::remove_insecure_properties()

Method: Removes insecure data from theme.json.

Source: wp-includes/class-wp-theme-json.php:2848

Used by 1 function | Uses 4 functions

WP_Theme_JSON::remove_insecure_settings()

Method: Processes a setting node and returns the same node without the insecure settings.

Source: wp-includes/class-wp-theme-json.php:2936

Used by 0 functions | Uses 5 functions

WP_Theme_JSON::remove_insecure_styles()

Method: Processes a style node and returns the same node without the insecure styles.

Source: wp-includes/class-wp-theme-json.php:2998

Used by 0 functions | Uses 2 functions

WP_Theme_JSON::is_safe_css_declaration()

Method: Checks that a declaration provided by the user is safe.

Source: wp-includes/class-wp-theme-json.php:3030

Used by 0 functions | Uses 2 functions

WP_Theme_JSON::get_settings_slugs()

Method: Similar to get_settings_values_by_slug, but doesn’t compute the value.

Source: wp-includes/class-wp-theme-json.php:1661

Used by 0 functions | Uses 2 functions

WP_Theme_JSON::replace_slug_in_string()

Method: Transforms a slug into a CSS Custom Property.

Source: wp-includes/class-wp-theme-json.php:1692

Used by 0 functions | Uses 0 functions

WP_Theme_JSON::get_custom_templates()

Method: Returns the page templates of the active theme.

Source: wp-includes/class-wp-theme-json.php:1130

Used by 0 functions | Uses 0 functions

WP_Theme_JSON::get_template_parts()

Method: Returns the template part data of active theme.

Source: wp-includes/class-wp-theme-json.php:1154

Used by 0 functions | Uses 0 functions

WP_Theme_JSON::get_block_classes()

Method: Converts each style section into a list of rulesets containing the block styles to be appended to the stylesheet.

Source: wp-includes/class-wp-theme-json.php:1192

Used by 1 function | Uses 0 functions

WP_Theme_JSON::get_preset_classes()

Method: Creates new rulesets as classes for each preset value such as:

Source: wp-includes/class-wp-theme-json.php:1417

Used by 1 function | Uses 1 function
1 2 Next
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry