inject_ignored_hooked_blocks_metadata_attributes( stdClass $changes, WP_REST_Request $deprecated = null ): stdClass|WP_Error
- Since
- 6.5.0
- Source
wp-includes/block-template-utils.php:1700
Description
Given an object that represents a wp_template or wp_template_part post object prepared for inserting or updating the database, locate all blocks that have hooked blocks, and inject a metadata.ignoredHookedBlocks attribute into the anchor blocks to reflect the latter.
Compatibility
- WordPress
- since 6.5.0
- PHP
- 7.4–8.6-dev
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0), and compiles on PHP 7.4 through 8.6-dev.
Parameters
$changesstdClass- An object representing a template or template part prepared for inserting or updating the database.
$deprecatedWP_REST_Requestoptional- Deprecated. Not used.Default:
null
Return value
stdClass|WP_Error- The updated object representing a template or template part.
Performance profile
How much work a call to inject_ignored_hooked_blocks_metadata_attributes() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.
- Cost class
- Heavy
- Scaling
- Constant
- Instructions
- 48–187
- Plugin surface
- None
- Called by
- 0
Reaches the database via get_post().
No loop in the body: the same number of instructions runs whatever you pass in.
Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 221.
Nothing here hands control to plugin code.
Nothing in core calls this; the cost is only what you spend yourself.
What it touches
- querycontent query
get_post()called directly - serializeserialisation
json_decode()called directly - hookthird-party callbacks
do_action()one call below inject_ignored_hooked_blocks_metadata_attributes() - cacheobject cache
wp_cache_add()one call below inject_ignored_hooked_blocks_metadata_attributes() - optionoption read or write
get_option()one call below inject_ignored_hooked_blocks_metadata_attributes()
Further down the call graph this can also reach transient. That is the worst case, several calls deep and usually down an error path, not what a normal call pays.
What one call costs · 120 distinct outcomes
One number would be a lie: the work depends on which branch runs. These are every distinct cost inject_ignored_hooked_blocks_metadata_attributes() can have, taken from its control-flow graph on PHP 8.5.
| When | Instructions | Calls it makes |
|---|---|---|
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && is_wp_error() | 48–54 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && is_wp_error() | 51–53 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() | 60–66 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() | 63–65 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && is_wp_error() | 64–72 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && is_wp_error() | 67–71 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() | 76–84 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() | 79–83 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && !empty($post) | 79–90 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && empty($post) | 82–89 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && !empty($post) | 89–99 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() | 91–102 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
108 further outcomes, up to 186 instructions
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 92–99 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && empty($post) | 92–98 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() | 94–101 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 95–98 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && !empty($post) && !isset($terms) | 95–108 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && empty($post) && !isset($terms) | 98–107 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 99–106 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 100–109 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 100–107 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() | 101–111 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 102–105 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 103–108 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 103–106 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() | 104–110 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && !empty($post) && !isset($terms) | 105–117 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 107–116 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 107–114 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() | 107–120 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 108–117 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 108–117 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && is_wp_error() && empty($post) && !isset($terms) | 108–116 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 110–115 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 110–113 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() | 110–119 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 111–116 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 111–116 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 115–124 | get_hooked_blocks(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 115–124 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 116–127 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 116–125 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() | 117–129 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 118–123 | get_hooked_blocks(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 118–123 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 119–126 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 119–124 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() | 120–128 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), apply_block_hooks_to_content() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 123–134 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 123–132 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 123–135 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 124–135 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 126–133 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 126–131 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 126–134 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 127–134 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 130–142 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 131–142 | get_hooked_blocks(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 131–145 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 131–143 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 133–144 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 133–141 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 134–141 | get_hooked_blocks(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 134–144 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 134–142 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 136–143 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 138–152 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 138–150 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 139–153 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 139–153 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 140–151 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 141–154 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 141–152 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 141–151 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 141–149 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 142–152 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 142–152 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 143–150 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 144–153 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 144–151 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 146–160 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 146–160 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 147–163 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 147–161 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 148–161 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 148–159 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 149–162 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 149–162 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 149–159 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 149–159 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 150–162 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 150–160 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 151–160 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 151–158 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 152–161 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 152–161 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 154–170 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 154–168 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 155–171 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 156–169 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 156–169 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 157–172 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 157–170 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 157–169 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 157–167 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 158–170 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 159–168 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 159–168 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 160–171 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 160–169 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 162–178 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 164–179 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 164–177 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 165–180 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 165–177 | get_hooked_blocks(), get_post(), wp_is_post_revision(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && !isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 167–178 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && empty($ignored_hooked_blocks) | 167–176 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 168–179 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && !empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 172–187 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
$deprecated === null && isset($changes) && !empty($hooked_blocks) && !$changes && !empty($changes) && empty($post) && !isset($terms) && !is_wp_error() && isset($post) && !empty($existing_ignored_hooked_blocks) && !empty($ignored_hooked_blocks) | 175–186 | get_hooked_blocks(), get_post(), wp_is_post_revision(), get_post(), array_merge(), get_the_terms(), is_wp_error(), current_time(), get_current_user_id(), get_the_terms(), is_wp_error(), _build_block_template_object_from_post_object(), is_wp_error(), get_post_meta(), json_decode(), get_comment_delimited_block_content(), apply_block_hooks_to_content(), remove_serialized_parent_block(), extract_serialized_parent_block(), parse_blocks(), wp_json_encode() |
This body has more branch combinations than are worth enumerating, so the table covers the outcomes found first rather than every one that exists.
Across PHP versions
| PHP | Compiled | Executed | Branches | Notes |
|---|---|---|---|---|
| 8.6-dev | 220 | 48–186 | 23 | 1 fewer instruction than PHP 8.5 |
| 8.5 | 221 | 48–187 | 23 | |
| 8.4 | 221 | 48–187 | 23 | |
| 8.3 | 221 | 48–187 | 23 | |
| 8.2 | 221 | 48–187 | 23 | |
| 8.1 | 221 | 48–187 | 23 | 2 fewer instructions than PHP 7.4 |
| 7.4 | 223 | 48–189 | 23 |
An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.
Uses · 18
- _deprecated_argument()Marks a function argument as deprecated and inform when it has been used.
- get_hooked_blocks()Retrieves block types hooked into the given block, grouped by anchor block type and the relative position.
- has_filter()Checks if any filter has been registered for a hook.
- get_post()Retrieves post data given a post ID or post object.
- wp_is_post_revision()Determines if the specified post is a revision.
- get_the_terms()Retrieves the terms of the taxonomy that are attached to the post.
- is_wp_error()Checks whether the given variable is a WordPress Error.
- current_time()Retrieves the current time based on specified type.
- get_current_user_id()Gets the current user's ID.
- _build_block_template_object_from_post_object()Builds a block template object from a post object.
- get_post_meta()Retrieves a post meta field for the given post ID.
- get_comment_delimited_block_content()Returns the content of a block, including comment delimiters.
Show all 18
- apply_block_hooks_to_content()Runs the hooked blocks algorithm on the given content.
- remove_serialized_parent_block()Accepts the serialized markup of a block and its inner blocks, and returns serialized markup of the inner blocks.
- extract_serialized_parent_block()Accepts the serialized markup of a block and its inner blocks, and returns serialized markup of the wrapper block.
- parse_blocks()Parses blocks out of a content string.
- wp_json_encode()Encodes a variable into JSON, with some confidence checks.
- WP_Post::__construct()Constructor.
Source code
function inject_ignored_hooked_blocks_metadata_attributes( $changes, $deprecated = null ) { if ( null !== $deprecated ) { _deprecated_argument( __FUNCTION__, '6.5.3' ); } if ( ! isset( $changes->post_content ) ) { return $changes; } $hooked_blocks = get_hooked_blocks(); if ( empty( $hooked_blocks ) && ! has_filter( 'hooked_block_types' ) ) { return $changes; } $meta = $changes->meta_input ?? array(); $terms = $changes->tax_input ?? array(); if ( empty( $changes->ID ) ) { // There's no post object for this template in the database for this template yet. $post = $changes; } else { // Find the existing post object. $post = get_post( $changes->ID ); // If the post is a revision, use the parent post's post_name and post_type. $post_id = wp_is_post_revision( $post ); if ( $post_id ) { $parent_post = get_post( $post_id ); $post->post_name = $parent_post->post_name; $post->post_type = $parent_post->post_type; } // Apply the changes to the existing post object. $post = (object) array_merge( (array) $post, (array) $changes ); $type_terms = get_the_terms( $changes->ID, 'wp_theme' ); $terms['wp_theme'] = ! is_wp_error( $type_terms ) && ! empty( $type_terms ) ? $type_terms[0]->name : null; } // Required for the WP_Block_Template. Update the post object with the current time. $post->post_modified = current_time( 'mysql' ); /* * If the post_author is empty, set it to the current user. If it arrived as * an int (e.g. from a REST controller), normalize it to a string, since the * resulting object is passed to new WP_Post(). */ if ( empty( $post->post_author ) ) { $post->post_author = (string) get_current_user_id(); } elseif ( is_int( $post->post_author ) ) { $post->post_author = (string) $post->post_author; } if ( 'wp_template_part' === $post->post_type && ! isset( $terms['wp_template_part_area'] ) ) { $area_terms = get_the_terms( $changes->ID, 'wp_template_part_area' ); $terms['wp_template_part_area'] = ! is_wp_error( $area_terms ) && ! empty( $area_terms ) ? $area_terms[0]->name : null; } $template = _build_block_template_object_from_post_object( new WP_Post( $post ), $terms, $meta ); if ( is_wp_error( $template ) ) { return $template; } if ( 'wp_template_part' === $post->post_type ) { $attributes = array(); $existing_ignored_hooked_blocks = isset( $post->ID ) ? get_post_meta( $post->ID, '_wp_ignored_hooked_blocks', true ) : ''; if ( ! empty( $existing_ignored_hooked_blocks ) ) { $attributes['metadata'] = array( 'ignoredHookedBlocks' => json_decode( $existing_ignored_hooked_blocks, true ), ); } $content = get_comment_delimited_block_content( 'core/template-part', $attributes, $changes->post_content ); $content = apply_block_hooks_to_content( $content, $template, 'set_ignored_hooked_blocks_metadata' );Changelog
Introduced in 6.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, from
src/wp-includes/block-template-utils.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.