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