Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: year_link

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
484
485      /**
486       * Filters the year archive permalink.
487       *
488       * @since 1.5.0
489       *
490       * @param string $yearlink Permalink for the year archive.
491       * @param int    $year     Year for the archive.
492       */
493      return apply_filters( 'year_link', $yearlink, $year );
494 }
495
496 /**
497  * Retrieves the permalink for the month archives with year.
498  *
499  * @since 1.0.0
500  *
501  * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
502  *