Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #49445, comment 1


Ignore:
Timestamp:
02/15/2020 03:18:03 PM (6 years ago)
Author:
pbiron
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49445, comment 1

    initial v1  
    11Hi @tmfhokies, welcome to Trac!
    22
    3 The problem you're experiencing is because of the way you're calling `add_hook()`.  `add_hook()` has an optional 2nd & 3rd parameter: the 3rd is "The number of arguments the function accepts".  For more details, see [https://developer.wordpress.org/reference/functions/add_action/ add_action()].
     3The problem you're experiencing is because of the way you're calling `add_action()`.  `add_action()` has an optional 2nd & 3rd parameter: the 3rd is "The number of arguments the function accepts".  For more details, see [https://developer.wordpress.org/reference/functions/add_action/ add_action()].
    44
    55If you change the call to: