[wp-trac] [WordPress Trac] #59003: Add `wp_get_theme_data_template_parts` function
WordPress Trac
noreply at wordpress.org
Fri Aug 11 11:23:10 UTC 2023
#59003: Add `wp_get_theme_data_template_parts` function
-------------------------+------------------------
Reporter: oandregal | Owner: oandregal
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.4
Component: General | Version: 6.3
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------+------------------------
Changes (by oandregal):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"56385" 56385]:
{{{
#!CommitTicketReference repository="" revision="56385"
Themes: add wp_get_theme_data_template_parts function.
Adds a new public function, `wp_get_theme_data_template_parts` that
returns the `templateParts` defined by the active theme from `theme.json`.
It also substitutes the usage of private APIs by this new API.
Props felixarntz.
Fixes #59003
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59003#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list