Title: is_sticky
Published: November 12, 2019
Last modified: May 20, 2026

---

# apply_filters( ‘is_sticky’, bool $is_sticky, int $post_id )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/is_sticky/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/is_sticky/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/is_sticky/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/is_sticky/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/is_sticky/?output_format=md#wp--skip-link--target)

Filters whether a post is sticky.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/is_sticky/?output_format=md#parameters)󠁿

 `$is_sticky`bool

Whether a post is sticky.

`$post_id`int

Post ID.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/is_sticky/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'is_sticky', $is_sticky, $post_id );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/post.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/post.php#L2899)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/post.php#L2899-L2899)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/is_sticky/?output_format=md#related)󠁿

| Used by | Description | 
| [is_sticky()](https://developer.wordpress.org/reference/functions/is_sticky/)`wp-includes/post.php` |

Determines whether a post is sticky.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/is_sticky/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.3.0](https://developer.wordpress.org/reference/since/5.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fis_sticky%2F)
before being able to contribute a note or feedback.