Title: post_stuck
Published: August 16, 2016
Last modified: May 20, 2026

---

# do_action( ‘post_stuck’, int $post_id )

## In this article

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

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

Fires once a post has been added to the sticky list.

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

 `$post_id`int

ID of the post that was stuck.

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

    ```php
    do_action( 'post_stuck', $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#L3310)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/post.php#L3310-L3310)

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

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

Makes a post sticky.

  |

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

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

## User Contributed Notes

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