[wp-trac] [WordPress Trac] #59003: Add `wp_get_theme_data_template_parts` function

WordPress Trac noreply at wordpress.org
Tue Aug 8 12:56:27 UTC 2023


#59003: Add `wp_get_theme_data_template_parts` function
-------------------------+-----------------------
 Reporter:  oandregal    |      Owner:  oandregal
     Type:  enhancement  |     Status:  assigned
 Priority:  normal       |  Milestone:  6.4
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------
 Part of https://github.com/WordPress/gutenberg/issues/45171

 **What**

 Add a new public function, `wp_get_theme_data_template_parts` to query the
 template parts metadata defined by the theme via `theme.json`. It also
 substitutes current usage of private APIs.

 **Why?**

 We need to offer public APIs for consumers to retrieve the data they need,
 so they don't resort to using private APIs.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59003>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list