File: wp-includes/blocks.php
-
Sanitizes the value of the Template Part block’s `tagName` attribute.
-
functionresolve_pattern_blocks()
Replaces patterns in a block tree with their content.
-
Hooks into the REST API response for the core/navigation block and adds the first and last inner blocks.
-
Updates the wp_postmeta with the list of ignored hooked blocks where the inner blocks are stored as post content.
-
Returns the markup for blocks hooked to the given anchor block in a specific relative position and then adds a list of hooked block types to an anchor block’s ignored hooked block types.
-
functionapply_block_hooks_to_content()
Runs the hooked blocks algorithm on the given content.
-
functionremove_serialized_parent_block()
Accepts the serialized markup of a block and its inner blocks, and returns serialized markup of the inner blocks.
-
Filters the parsed block array for a given hooked block.
-
Adds a list of hooked block types to an anchor block’s ignored hooked block types.
-
functioninsert_hooked_blocks()
Returns the markup for blocks hooked to the given anchor block in a specific relative position.
-
hookhooked_block
Filters the parsed block array for a given hooked block.
-
Finds a script module ID 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 module under with an automatically generated module ID. It returns unprocessed script module ID otherwise.
-
function_wp_footnotes_kses_init()
Registers the filter of footnotes meta field if the user does not have `unfiltered_html` capability.
-
Initializes the filters for footnotes meta field when imported data should be filtered.
-
function_wp_footnotes_remove_filters()
Removes the filters for footnotes meta field.
-
Adds the filters for footnotes meta field.
-
function_wp_filter_post_meta_footnotes()
Strips all HTML from the content of footnotes, and sanitizes the ID.
-
functiontraverse_and_serialize_blocks()
Given an array of parsed block trees, applies callbacks before and after serializing them and returns their concatenated output.
-
functiontraverse_and_serialize_block()
Traverses a parsed block tree and applies callbacks before and after serializing it.
-
functionmake_after_block_visitor()
Returns a function that injects the hooked blocks after a given block.
-
Filters the list of hooked block types for a given anchor block type and relative position.
-
functionmake_before_block_visitor()
Returns a function that injects the theme attribute into, and hooked blocks before, a given block.
-
functionget_hooked_blocks()
Retrieves block types hooked into the given block, grouped by anchor block type and the relative position.
-
functionget_block_asset_url()
Gets the URL to a block asset.
-
functionexcerpt_remove_footnotes()
Parses footnotes markup out of a content string, and renders those appropriate for the excerpt.
-
function_filter_block_content_callback()
Callback used for regular expression replacement in filter_block_content().
-
Filters the arguments which will be passed to `WP_Query` for the Query Loop Block.
-
Helper function that constructs a comment query vars array from the passed block properties.
-
functionget_comments_pagination_arrow()
Helper function that returns the proper pagination arrow HTML for `CommentsPaginationNext` and `CommentsPaginationPrevious` blocks based on the provided `paginationArrow` from `CommentsPagination` context.
-
functionget_query_pagination_arrow()
Helper function that returns the proper pagination arrow HTML for `QueryPaginationNext` and `QueryPaginationPrevious` blocks based on the provided `paginationArrow` from `QueryPagination` context.