[wp-trac] [WordPress Trac] #50245: extend functionality to stop further actions on hook on a priority range

WordPress Trac noreply at wordpress.org
Mon May 25 15:42:31 UTC 2020


#50245: extend functionality to stop further actions on hook on a priority range
-------------------------+--------------------------------------------
 Reporter:  Alignak      |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Cache API    |     Version:
 Severity:  normal       |  Resolution:  invalid
 Keywords:               |     Focuses:  performance, coding-standards
-------------------------+--------------------------------------------
Changes (by apedog):

 * keywords:  dev-feedback =>


Comment:

 I don't know of any way to get a static/reliable reference to a closure in
 PHP.
 You could use {{{debug_backtrace}}} to find every closure's callstack. But
 I'm pretty certain that is not considered "best practice" by any means
 (and might even introduce slight performance issues).

 Or install Query Monitor plugin to see where and how all your themes and
 plugins hook into WordPress. Maybe you'll find a cleaner way to remove
 what you're trying to remove. Micro-managing an external plugin the way
 you're going about it doesn't seem sustainable in the long run (been there
 done that). It could very easily break on your next update. Fun way to
 learn WordPress tho.

 You might also want to look into installing an Object Cache plugin to
 replace the use of transients.

 Also - StackExchange.

 Good Luck!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50245#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list