[wp-trac] [WordPress Trac] #26235: Add action when _fix_attachment_links fires

WordPress Trac noreply at wordpress.org
Wed Nov 27 12:48:46 UTC 2013


#26235: Add action when _fix_attachment_links fires
----------------------------+------------------------------
 Reporter:  dllh            |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------------

Comment (by SergeyBiryukov):

 > So I need a way to make sure the events that fire on `publish_post` fire
 exactly once even if the update itself executes more than once.

 You can just call `remove_action()` in your current function attached to
 `publish_post`. This use case doesn't require a new hook.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26235#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list