[wp-trac] [WordPress Trac] #38743: Introduce add_action_once()

WordPress Trac noreply at wordpress.org
Fri Mar 23 20:03:50 UTC 2018


#38743: Introduce add_action_once()
-----------------------------+------------------------------
 Reporter:  tfrommen         |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Plugins          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by soulseekah):

 To tell you the truth, I had initially misread your issue. I was going to
 work on this as I thought "Wow, this is really useful!". Then, I started
 implementing it, and reading into your implementation, and realized that
 you need something different :)

 And I apologize for skimming the name you came up with initially, though
 :)

 Judging by the amount of starsgazers on this issue, though, seems like
 people are indeed interested in unique callback adding, although not sure
 how coordinated the use would be. Like how do you get plugin developers to
 use `ensure_action()` instead of `add_action()`, as protection for their
 own filters perhaps?

 Thoughts?

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


More information about the wp-trac mailing list