Make WordPress Core

Opened 3 years ago

Closed 8 months ago

Last modified 8 months ago

#17594 closed enhancement (wontfix)

Add pre_get_home_url hook for plugins

Reported by: technosailor Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.2
Component: General Keywords: has-patch reporter-feedback
Focuses: Cc:


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 3 years ago.
adds pre_get_home_url action.

Download all attachments as: .zip

Change History (5)

technosailor3 years ago

adds pre_get_home_url action.

comment:1 nacin3 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 SergeyBiryukov3 years ago

  • Keywords reporter-feedback added

comment:3 avryl8 months ago

  • Resolution set to wontfix
  • Status changed from new to closed

No reporter feedback in over two years.

comment:4 ocean908 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.