is_sticky WordPress Filter Hook
The is_sticky wordpress hook is used to check if a post is sticky. If the post is sticky, the hook will return true.
apply_filters( 'is_sticky', bool $is_sticky , int $post_id ) #
Filters whether a post is sticky.
Parameters
- $is_sticky
(bool)Whether a post is sticky.
- $post_id
(int)Post ID.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
5.3.0 | Introduced. |