[wp-trac] [WordPress Trac] #62193: Rename template registration API functions removing the wp_ prefix
WordPress Trac
noreply at wordpress.org
Fri Sep 12 10:14:42 UTC 2025
#62193: Rename template registration API functions removing the wp_ prefix
--------------------------------------+----------------------------
Reporter: aljullu | Owner: peterwilsoncc
Type: defect (bug) | Status: closed
Priority: high | Milestone: 6.7
Component: Editor | Version: 6.7
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: template
--------------------------------------+----------------------------
Comment (by yanshgupta):
This is a great change for consistency across the block API. By removing
the `wp_` prefix from `register_block_template()` and
`unregister_block_template()`, the updated naming better aligns with
existing functions like `register_block_type()` and
`register_block_style()`. This creates a more predictable and cohesive
developer experience, making the API more intuitive and predictable for
developers.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62193#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list