Opened 2 years ago
Last modified 21 months ago
#17594 new enhancement
Add pre_get_home_url hook for plugins
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | General | Version: | 3.2 |
| Severity: | normal | Keywords: | has-patch reporter-feedback |
| Cc: |
Description
We need to allow plugins to "do stuff" in pre_get_home_url. In profiling today, we wrote some code that, if we have this hook, would allow a reduction of computations from x (in our case, 4000) down to 1 using a pseudo-cache technique.
While that code isn't core-worthy, having a hook to allow plugin modification would incredibly enhance the ability to make WP more efficient on scale.
Attachments (1)
Change History (3)
technosailor — 2 years ago
Can we hear more about the use case?
If we were to do this, I'd think we'd do it for all _url() functions.
comment:2
SergeyBiryukov — 21 months ago
- Keywords reporter-feedback added
Note: See
TracTickets for help on using
tickets.

adds pre_get_home_url action.