Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: post_stuck

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2541
2542      if ( $updated ) {
2543           /**
2544            * Fires once a post has been added to the sticky list.
2545            *
2546            * @since 4.6.0
2547            *
2548            * @param int $post_id ID of the post that was stuck.
2549            */
2550           do_action( 'post_stuck', $post_id );
2551      }
2552 }
2553
2554 /**
2555  * Un-stick a post.
2556  *
2557  * Sticky posts should be displayed at the top of the front page.
2558  *
2559  * @since 2.7.0