post_stuck WordPress Action Hook
If you're like most WordPress users, you've probably had the experience of being "stuck" while working on a post or page. Whether it's because you can't figure out how to do something, or you're just not sure what to write next, being stuck can be frustrating. Luckily, there's a WordPress hook called "post_stuck" that can help you get unstuck and continue working on your post or page. This hook allows you to add a custom action to your WordPress site that will be triggered when you're stuck. For example, you could add a custom action that would send you an email with helpful tips on how to get unstuck. Or, you could add a custom action that would create a new draft of your post or page so you can come back to it later. Whatever action you choose to add, the post_stuck hook can help you get unstuck and continue working on your WordPress site.
do_action( 'post_stuck', int $post_id ) #
Fires once a post has been added to the sticky list.
Parameters
- $post_id
(int)ID of the post that was stuck.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |