post_unstuck
Fires once a post has been removed from the sticky list.
Использование
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.
Список изменений
| С версии 4.6.0 | Введена. |
Где вызывается хук
post_unstuck
wp-includes/post.php 3307
do_action( 'post_unstuck', $post_id );