New and updated in 6.5.0
-
Given a styles array, it extracts the style properties and adds them to the $declarations array following the format:
-
functionwp_getimagesize()
Allows PHP’s getimagesize() to be debuggable when necessary.
-
Registers a block pattern.
Used by 0 functions | Uses 3 functions | Source: wp-includes/class-wp-block-patterns-registry.php:89 -
methodWP_Block::render()
Generates the render output for the block.
-
Prepares a block type object for serialization.
Used by 2 functions | Uses 7 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php:254 -
functiongenerate_block_asset_handle()
Generates the name for an asset based on the name of the block and the field name provided.
-
functionregister_block_script_handle()
Finds a script handle for the selected block metadata field. It detects when a path to file was provided and optionally finds a corresponding asset file with details necessary to register the script under automatically generated handle name. It returns unprocessed script handle otherwise.
-
Registers a block type from the metadata stored in the `block.json` file.
-
functionvalidate_plugin_requirements()
Validates the plugin requirements for WordPress version and PHP version.
-
Constructor.
-
functionwp_get_image_mime()
Returns the real mime type of an image file.
-
Retrieves one revision from the collection.
Used by 0 functions | Uses 7 functions | Source: wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php:428 -
Filters whether to call a shortcode callback.
-
hookdo_shortcode_tag
Filters the output created by a shortcode callback.
-
functionwp_json_encode()
Encodes a variable into JSON, with some confidence checks.
-
functionget_plugin_data()
Parses the plugin contents to retrieve plugin’s metadata.
-
functionadd_theme_support()
Registers theme support for a given feature.
-
functionis_child_theme()
Whether a child theme is in use.
-
functionget_available_languages()
Gets all available languages based on the presence of *.mo and *.l10n.php files in a given directory.
-
functionsafecss_filter_attr()
Filters an inline style attribute and removes disallowed rules.
-
functionshortcode_parse_atts()
Retrieves all attributes from the shortcodes tag.
-
functionwp_mime_type_icon()
Retrieves the icon for a MIME type or attachment.