Update FILTERS.md
This commit is contained in:
parent
742652b12a
commit
db4a6626b3
20
FILTERS.md
20
FILTERS.md
@ -1605,16 +1605,6 @@ Filters the arguments for the story chapter posts query, an utility function cal
|
||||
|
||||
---
|
||||
|
||||
### `apply_filters( 'fictioneer_filter_verify_unpublish_access', $authorized, $post_id, $post )`
|
||||
Filters the boolean return value of the `fictioneer_verify_unpublish_access( $post )` function. By default, this verifies current user has access to unpublished posts (not drafts).
|
||||
|
||||
**Parameters:**
|
||||
* $authorized (boolean) – Whether the current user can access unpublished posts.
|
||||
* $post_id (int) – The post ID.
|
||||
* $post (WP_Post) – The post object.
|
||||
|
||||
---
|
||||
|
||||
### `apply_filters( 'fictioneer_filter_story_footer_meta', $meta_output, $args, $post )`
|
||||
Filters the intermediate output array of story meta data in the `_story-footer.php` partial before it is imploded and rendered. Contains the status, publish date, word count, age rating, and checkmark (if enabled).
|
||||
|
||||
@ -1755,6 +1745,16 @@ Filters the check result of whether the user’s Patreon data is still valid. Be
|
||||
|
||||
---
|
||||
|
||||
### `apply_filters( 'fictioneer_filter_verify_unpublish_access', $authorized, $post_id, $post )`
|
||||
Filters the boolean return value of the `fictioneer_verify_unpublish_access()` function. By default, this verifies whether the current user has access to unpublished posts (not drafts).
|
||||
|
||||
**Parameters:**
|
||||
* $authorized (boolean) – Whether the current user can access unpublished posts.
|
||||
* $post_id (int) – The post ID.
|
||||
* $post (WP_Post) – The post object.
|
||||
|
||||
---
|
||||
|
||||
### `apply_filters( 'fictioneer_filter_word_count', $word_count, $post_id )`
|
||||
Filters the word count of a post after sanitization (greater than or equal to 0) and before `fictioneer_multiply_word_count()` is applied, returning a positive integer. The word count is only calculated and updated when a post is saved.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user