New and updated in 5.9.0
-
functionwp_filter_global_styles_post()
Sanitizes global styles user content removing unsafe rules.
-
Fires after PHPMailer has successfully sent an email.
-
Returns the value of a MySQL system variable.
-
Disables block editor for wp_navigation type posts so they can be managed via the UI.
-
This callback disables the content editor for wp_navigation type posts.
-
This callback enables content editor for wp_navigation type posts.
-
function_load_remote_block_patterns()
Register Core’s official patterns from wordpress.org/patterns.
-
Returns the theme’s data.
-
Returns the data merged from multiple origins.
-
Determines whether the active theme has a theme.json file.
-
Builds the path to the given file and checks that it is readable.
-
Cleans the cached data so it can be recalculated.
-
Prepare a single template output for response
Used by 6 functions | Uses 13 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:670 -
Retrieves the query params for the posts collection.
Used by 1 function | Uses 0 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:1001 -
Retrieves the block type’ schema, conforming to JSON Schema.
Used by 0 functions | Uses 1 function | Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:1027 -
Prepare a raw block pattern before it gets output in a REST API response.
Used by 1 function | Uses 4 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php:187 -
functionresolve_block_template()
Returns the correct ‘wp_template’ to render for the request template type.
-
Given a styles array, it extracts the style properties and adds them to the $declarations array following the format:
-
Returns the style property for the given path.
-
methodWP_Theme_JSON::merge()
Merges new incoming data.
-
Given the block settings, extracts the CSS Custom Properties for the presets and adds them to the $declarations array following the format:
-
Sanitizes the input according to the schemas.
-
Returns the metadata for each block.
-
Returns the stylesheet that results of processing the theme.json structure this object represents.
-
Converts each styles section into a list of rulesets to be appended to the stylesheet.
-
Given a settings array, returns the generated rulesets for the preset classes.
-
Filters the content of a single block.