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.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.6.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