A WordPress-centric search engine for devs and theme authors



the_posts ›

Since1.5.0
Deprecatedn/a
apply_filters_ref_array( 'the_posts', array( $this->posts, &$this )
Parameters: (2)
  • (WP_Post[]) $posts Array of post objects.
    Required: Yes
  • (WP_Query) $this The WP_Query instance (passed by reference).
    Required: Yes
Defined at:
Codex:

Filters the array of retrieved posts after they've been fetched and internally processed.





Source

$this->posts = apply_filters_ref_array( 'the_posts', array( $this->posts, &$this ) );