post_stuck
Fires once a post has been added to the sticky list.
Usage
add_action( 'post_stuck', 'wp_kama_post_stuck_action' ); /** * Function for `post_stuck` action-hook. * * @param int $post_id ID of the post that was stuck. * * @return void */ function wp_kama_post_stuck_action( $post_id ){ // action... }
- $post_id(int)
- ID of the post that was stuck.
Changelog
Since 4.6.0 | Introduced. |
Where the hook is called
post_stuck
wp-includes/post.php 3026
do_action( 'post_stuck', $post_id );