Update FILTERS.md

This commit is contained in:
Tetrakern 2024-04-08 09:27:01 +02:00
parent 84e56f0325
commit 65af4d3239

View File

@ -1331,14 +1331,14 @@ Filters the intermediate output array in the `_card-story.php` partial before it
---
### `apply_filters( 'fictioneer_filter_story_chapter_posts_query', $query_args )`
Filters the query arguments for the story chapter posts query, an utility function called in various places. You can use this to include scheduled posts in the story chapter list, for example.
Filters the arguments for the story chapter posts query, an utility function called in various places. There are two variants depending on whether the `FICTIONEER_QUERY_ID_ARRAY_LIMIT` is exceeded or not.
**$query_args:**
* $post_type (string) - Which post types to query. Default `'fcn_chapter'`.
* $post_status (string) - Which post status to query. Default `'publish'`.
* $post__in (array|null) - Array chapter IDs. Only used if query ID limit is not exceeded.
* $post__in (array|null) - Array chapter IDs. Only used if the ID limit is not exceeded.
* $orderby (string) - Only used with `'post__in'`. Default `'post__in'`.
* $meta_key (string) - Only used if query ID limit is exceeded. Default `'fictioneer_chapter_story'`.
* $meta_key (string) - Only used if the ID limit is exceeded. Default `'fictioneer_chapter_story'`.
* $meta_value (int) - Only used with `'meta_key'`. Default story ID.
* $ignore_sticky_posts (boolean) - Whether to ignore sticky (blog) posts. Default `true`.
* $posts_per_page (int) - How many posts to query. Default `-1` (all).