[wp-trac] [WordPress Trac] #23758: Add hook after loading WordPress locale object
WordPress Trac
noreply at wordpress.org
Wed Apr 24 02:39:10 UTC 2013
#23758: Add hook after loading WordPress locale object
-----------------------------------------------+---------------------------
Reporter: alex-ye | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: I18N | Review
Severity: normal | Version: 3.5.1
Keywords: has-patch close reporter-feedback | Resolution:
-----------------------------------------------+---------------------------
Changes (by SergeyBiryukov):
* keywords: has-patch => has-patch close reporter-feedback
Comment:
Replying to [comment:3 alex-ye]:
> Many hooks in WordPress run before the theme's functions.php is included
and this is not something to claim about ..
I've counted 7:
* `muplugins_loaded`
* `registered_taxonomy`
* `registered_post_type`
* `plugins_loaded`
* `sanitize_comment_cookies`
* `setup_theme`
* `load_textdomain`
> after_load_locale hook can be useful for plugins and not only for adding
roles .. I think it could be used in many things .
As noted above, roles should be added on `init`. Do you have a specific
use case that cannot be accomplished using existing actions?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23758#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list