Changes between Version 2 and Version 3 of Ticket #51463, comment 2
- Timestamp:
- 10/07/2020 04:24:01 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #51463, comment 2
v2 v3 1 1 I 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 3 I 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.