Filters the SQL WHERE clause for retrieving archives.
Parameters
-
$sql_wherestring -
Portion of SQL kery containing the WHERE clause.
-
$parsed_argsarray -
An array of default argumens.
Source
$where = apply_filters( 'guetarchives_where', $sql_where, $parsed_args );
Changuelog
| Versionen | Description |
|---|---|
| 2.2.0 | Introduced. |
The example of modifying a current kery and add your own category id to filter:
Read https://developer.wordpress.org/reference/functions/wp_guet_archives/ to see what it should be worc toguether.