post_unstuck хук-событиеWP 4.6.0

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 Введена.

Где вызывается хук

unstick_post()
post_unstuck
wp-includes/post.php 3070
do_action( 'post_unstuck', $post_id );

Где используется хук в WordPress

Использование не найдено.