Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21170, comment 131


Ignore:
Timestamp:
07/21/2017 09:41:20 AM (8 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21170, comment 131

    initial v1  
    22> However, I'm not sure we should make it mandatory.
    33
    4 Thinking it should be mandatory so we have parity with the way hooks work in PHP. A plugin should always be able to remove an action or a filter, also when it is added by another plugin. If the callback name is not mandatory some plugins will probably skip it. Then we will have to do "Not doing it right.." etc. again.
     4Thinking it should be mandatory so we have parity with the way hooks work in PHP. A plugin should always be able to remove an action or a filter, also when it is added by another plugin. If the callback name is not mandatory some plugins will probably skip it. Then we will have to do "Doing it wrong..." etc. again.
    55
    66Working example: