WPDev.one

is_sticky()

is_sticky( mixed $post_id = 0 )

Determines whether a post is sticky.

Parameters 0 required

Name / Type Description
$post_id
int

Optional. Post ID. Default is the ID of the global `$post`.

Return Value

(bool)
Whether post is sticky.

Function Information

Since Version
2.7.0
Source File
wp-includes/post.php
Advertisement