Changeset 57790 for trunk/src/wp-includes/default-filters.php
- Timestamp:
- 03/07/2024 02:10:31 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-filters.php
r57627 r57790 753 753 add_action( 'init', '_wp_register_default_font_collections' ); 754 754 755 // It might be nice to use a filter instead of an action, but the `WP_REST_Templates_Controller` doesn't 756 // provide one (unlike e.g. `WP_REST_Posts_Controller`, which has `rest_pre_insert_{$this->post_type}`). 757 add_action( 'rest_after_insert_wp_template', 'inject_ignored_hooked_blocks_metadata_attributes', 10, 3 ); 758 add_action( 'rest_after_insert_wp_template_part', 'inject_ignored_hooked_blocks_metadata_attributes', 10, 3 ); 755 // Add ignoredHookedBlocks metadata attribute to the template and template part post types. 756 add_filter( 'rest_pre_insert_wp_template', 'inject_ignored_hooked_blocks_metadata_attributes', 10, 2 ); 757 add_filter( 'rest_pre_insert_wp_template_part', 'inject_ignored_hooked_blocks_metadata_attributes', 10, 2 ); 759 758 760 759 unset( $filter, $action );
Note: See TracChangeset
for help on using the changeset viewer.