Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #51463, comment 2


Ignore:
Timestamp:
10/07/2020 04:24:01 PM (4 years ago)
Author:
DavidAnderson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51463, comment 2

    v2 v3  
    11I tend to think that the parameters passed to an action shouldn't include ones it can directly derive from what it has already got. So, here, the called function can already call is_user_logged_in() and has_action() itself.
     2
     3I didn't clarify in the original post that the placement of the action was chosen so that it can also be used for diagnostics when the action *is* hooked.