do_action_ref_array( 'pre_get_posts', ... )

Fires after the query variable object is created, but before the actual query is run.

Parameters:
  • $query WP_Query