How do add_action and WP_Query

  1. add_action/add_filter recive few arguments. Second one is callback.
  2. It’s done using constructor method.