[wp-trac] [WordPress Trac] #38743: Introduce add_action_once()
WordPress Trac
noreply at wordpress.org
Fri Mar 23 18:06:41 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 tfrommen):
Replying to [comment:4 soulseekah]:
> Opps, looks like #43621 is intending to use the same name. Do you think
you can come up with a different name concept? :)
>
> `add_filter_unique()` maybe?
Hm, interesting. In both cases, that name would make sense.
In '''this''' case, I could think of something like `ensure_action()`...
Not sure. Also, there's not really an interest in this at all, considering
both the ''impact'' opening this ticket has had, and also the plugin API
is not really young, and yet noone ever really seems to have needed
something like this...?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38743#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list