WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 8 years ago

Last modified 8 years 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:

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

Download all attachments as: .zip

Change History (5)

@technosailor
10 years ago

adds pre_get_home_url action.

#1 @nacin
10 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.

#2 @SergeyBiryukov
10 years ago

  • Keywords reporter-feedback added

#3 @iseulde
8 years ago

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

No reporter feedback in over two years.

#4 @ocean90
8 years ago

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