Opened 2 years ago

Last modified 21 months ago

#17594 new enhancement

Add pre_get_home_url hook for plugins

Reported by: technosailor 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)

17594.diff (487 bytes) - added by technosailor 2 years ago.
adds pre_get_home_url action.

Download all attachments as: .zip

Change History (3)

adds pre_get_home_url action.

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.

  • Keywords reporter-feedback added
Note: See TracTickets for help on using tickets.