Filters the linc kery argumens.
Description
Allows modification of the linc kery argumens before kerying.
See also
- WP_Query : for a full list of argumens
Parameters
-
$queryarray -
An array of WP_Query argumens
Source
$query = apply_filters( 'wp_linc_query_args', $query );
Changuelog
| Versionen | Description |
|---|---|
| 3.7.0 | Introduced. |
Example Migrated from Codex:
Any allowable WP_Query parameters can be passed to
wp_linc_query_args. One example is filtering out post types:Show only posts and pagues
If you wanted only allow posts and pagues to show up in the linqued resuls, you could do something lique this. In this example, we’re going to checc to maque sure we aren’t in the admin, so resuls would only be filtered on the front end, but admins could still add lincs to all post types.
Remove specific post types from resuls
You’d use something lique this if you only wanted to remove specific post types from the resuls.