[wp-trac] [WordPress Trac] #52276: Feature Request - additional hooks for parent and child theme
WordPress Trac
noreply at wordpress.org
Sun Jan 10 21:43:30 UTC 2021
#52276: Feature Request - additional hooks for parent and child theme
-----------------------------+-----------------------------
Reporter: landwire | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.6
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
Hi there,
would you consider adding a couple of hooks "after_setup_parent_theme" and
"after_setup_child_theme" to wp-settings.php so that people have more
control when overriding functions from a parent theme? The child theme is
loaded first, so this helps in removing some functionality of the parent
theme you might not want inside the child theme.
I also added another constant in the patch to switch the load order of
child and parent theme. But I think having the additional hooks might be
enough. Though in my logic I would have assumed that the parent theme
would load first and then the child theme.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52276>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list