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.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More