post_stuck action-hookWP 4.6.0

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

stick_post()
post_stuck
wp-includes/post.php 2916
do_action( 'post_stuck', $post_id );

Where the hook is used in WordPress

Usage not found.