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

Developer Resources

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

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:2934

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:2006

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:2138

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:1914

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:1924

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:1936

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:1021

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:456

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:2788

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:2805

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:2337

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:2229

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:2374

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:2428

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:2460

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:2483

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:2506

Used by 1 function | Uses 3 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:2587

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:2644

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:2672

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:1456

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:1487

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:938

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:962

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:1000

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:1225

Used by 1 function | Uses 1 function

WP_Theme_JSON::scope_selector()

Method: Function that scopes a selector with another one. This works a bit like SCSS nesting except the `&` operator isn’t supported.

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

Used by 0 functions | Uses 0 functions

WP_Theme_JSON::get_settings_values_by_slug()

Method: Gets preset values keyed by slugs based on settings and metadata.

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

Used by 0 functions | Uses 2 functions

WP_Theme_JSON::maybe_opt_in_into_settings()

Method: Enables some opt-in settings if theme declared support.

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

Used by 0 functions | Uses 0 functions

WP_Theme_JSON::do_opt_in_into_settings()

Method: Enables some settings.

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

Used by 0 functions | Uses 2 functions
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