Filters the raw post results array, prior to status checks.
Parameters
Source
$this->posts = apply_filters_ref_array( 'posts_results', array( $this->posts, &$this ) );
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |
Filters the raw post results array, prior to status checks.
$this->posts = apply_filters_ref_array( 'posts_results', array( $this->posts, &$this ) );
Version | Description |
---|---|
2.3.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Example migrated from Codex:
Code sample for filtering an array of posts results and return an array of post objects which does not have the word “selfie” in the title.