Changeset 59523 for trunk/src/wp-includes/default-filters.php
- Timestamp:
- 12/17/2024 10:35:17 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-filters.php
r59415 r59523 193 193 add_filter( 'the_title', 'trim' ); 194 194 195 add_filter( 'the_content', 'apply_block_hooks_to_content', 8 ); // BEFORE do_blocks(). 195 196 add_filter( 'the_content', 'do_blocks', 9 ); 196 197 add_filter( 'the_content', 'wptexturize' ); … … 761 762 762 763 // Update ignoredHookedBlocks postmeta for wp_navigation post type. 764 add_filter( 'rest_pre_insert_page', 'update_ignored_hooked_blocks_postmeta' ); 765 add_filter( 'rest_pre_insert_post', 'update_ignored_hooked_blocks_postmeta' ); 763 766 add_filter( 'rest_pre_insert_wp_navigation', 'update_ignored_hooked_blocks_postmeta' ); 764 767 765 // Inject hooked blocks into the wp_navigation post type REST response. 768 // Inject hooked blocks into the Posts endpoint REST response for some given post types. 769 add_filter( 'rest_prepare_page', 'insert_hooked_blocks_into_rest_response', 10, 2 ); 770 add_filter( 'rest_prepare_post', 'insert_hooked_blocks_into_rest_response', 10, 2 ); 766 771 add_filter( 'rest_prepare_wp_navigation', 'insert_hooked_blocks_into_rest_response', 10, 2 ); 767 772
Note: See TracChangeset
for help on using the changeset viewer.