[wp-trac] [WordPress Trac] #59137: Add `wp_get_theme_data_custom_templates` function

WordPress Trac noreply at wordpress.org
Fri Aug 18 13:21:11 UTC 2023


#59137: Add `wp_get_theme_data_custom_templates` function
------------------------------+------------------------
 Reporter:  oandregal         |       Owner:  oandregal
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  6.4
Component:  Themes            |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------------
Changes (by oandregal):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56413" 56413]:
 {{{
 #!CommitTicketReference repository="" revision="56413"
 Themes: add `wp_get_theme_data_custom_templates` function.

 Adds a new public function, `wp_get_theme_data_custom_templates` that
 returns the `customTemplates` defined by the active theme from
 `theme.json`. It also substitutes the usage of private APIs by this new
 API.

 Props johnbillion, audrasjb.
 Fixes #59137
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59137#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list