get_year_link() WP 1.0
Retrieves the permalink for the year archives.
1 time = 0.000159s = fast | 50000 times = 3.51s = fast | PHP 7.0.8, WP 4.6
Hooks from the function
Return
String. The permalink for the specified year archive.
Usage
get_year_link( $year );
- $year(int/false) (required)
- Integer of year. False for current year.
Notes
- Global. WP_Rewrite. $wp_rewrite WordPress rewrite component.
Changelog
Since 1.5.0 | Introduced. |
Code of get_year_link() get year link WP 5.6
Related Functions
From tag: Link (URL)
- admin_url()
- attachment_url_to_postid()
- build_query()
- comment_link()
- content_url()
- get_comments_link()
- get_comments_pagenum_link()
- get_edit_post_link()
- get_edit_term_link()
- get_home_url()
- get_next_comments_link()
- get_post_embed_url()
- get_post_permalink()