@package: Theme
-
classWP_Theme_JSON
Class that encapsulates the processing of structures that adhere to the theme.json spec.
-
Given an array of presets keyed by origin and the value key of the preset, it returns an array where each key is the preset slug and each value the preset value.
-
functioncreate_initial_theme_features()
Creates the initial theme features when the ‘setup_theme’ action is fired.
-
functionregister_theme_feature()
Registers a theme feature for use in add_theme_support().
-
functionget_registered_theme_features()
Gets the list of registered theme features.
-
functionget_registered_theme_feature()
Gets the registration config for a theme feature.
-
functionvalidate_theme_requirements()
Validates the theme requirements for WordPress version and PHP version.
-
Filters header video settings.
-
Makes sure that auto-draft posts get their post_date bumped or status changed to draft to prevent premature garbage-collection.
-
Filters the header video URL.
-
Publishes a snapshot’s changes.
-
Filters changeset post data upon insert to ensure post_name is intact.
-
Filters the expanded array of starter content.
-
functionget_theme_starter_content()
Expands a theme’s starter content configuration using core-provided data.
-
Filters the custom CSS output into the head element.
-
functionwp_update_custom_css_post()
Updates the `custom_css` post for a given theme.
-
Filters the `css` (`post_content`) and `preprocessed` (`post_content_filtered`) args for a `custom_css` post being updated.
-
functionwp_custom_css_cb()
Renders the Custom CSS style element.
-
functionwp_get_custom_css_post()
Fetches the `custom_css` post for a given theme.
-
functionwp_get_custom_css()
Fetches the saved Custom CSS content for rendering.
-
functionget_custom_header_markup()
Retrieves the markup for a custom header.
-
functionthe_custom_header_markup()
Prints the markup for a custom header.
-
Filters whether the custom header video is eligible to show on the current page.
-
functionhas_header_video()
Checks whether a header video is set or not.
-
functionget_header_video_url()
Retrieves header video URL for custom header.
-
functionthe_header_video_url()
Displays header video URL.
-
functionget_header_video_settings()
Retrieves header video settings.
-
functionhas_custom_header()
Checks whether a custom header is set or not.
-
functionis_header_video_active()
Checks whether the custom header video is eligible to show on the current page.
-
function_custom_logo_header_styles()
Adds CSS to hide header text for custom logo, based on Customizer setting.