How to use the do_action () with parameter
The correct way is to pass first argument as a unique string which acts as an identifier for the action & any additional arguments after that do_action(‘unique_action_tag’, $parameter1, $parameter2,,,, & so on); To attach functions to this action you’ll do // 10 is the priority, higher means executed first // 2 is number of arguments … Read more