Title: year meta
Last modified: October 28, 2020

---

# year meta

 *  Resolved [Frederic Legrand](https://wordpress.org/support/users/fredericlegrand/)
 * (@fredericlegrand)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/year-meta/)
 * Hi
    i see you did depriciate the %currentyear% meta because you dont see any 
   use for it
 * but this is what i need to achieve, add current year in meta
    [https://moz.com/blog/keyword-year-content-rankings-hack-whiteboard-friday](https://moz.com/blog/keyword-year-content-rankings-hack-whiteboard-friday)
 * do you think you could leave that meta?
 * so far it s working

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/year-meta/#post-13590760)
 * Hello Frederic,
 * Thanks for reaching out.
 * Starting in v7.7 of Yoast SEO, we’ve deprecated the `%%currentyear%%` variable(
   along with some others) as we see no valid use-case for them, as you have rightly
   mentioned.
 * That being said, you or your developer can use the `wpseo_register_extra_replacements`
   filter to create your own custom variables.
 * An example code snippet can be found here:
    [https://gist.github.com/amboutwe/550c10ede7d065d9264930f5480ca748#file-yoast_seo_title_custom-variable-php](https://gist.github.com/amboutwe/550c10ede7d065d9264930f5480ca748#file-yoast_seo_title_custom-variable-php)
 * Typically code snippets are added to your theme’s functions.php file. If you’re
   not familiar with using code snippets, these articles have wonderful advice:
    -  [http://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/](http://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/)
 *  -  [http://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/](http://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/)
 *  Thread Starter [Frederic Legrand](https://wordpress.org/support/users/fredericlegrand/)
 * (@fredericlegrand)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/year-meta/#post-13591005)
 * great
    thanks for quick reply and PHP solution
 * If i may, i think it s a mistake to kill those meta as it is part of fashion 
   e-commerce SEO strategy and other sector

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘year meta’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [currentyear](https://wordpress.org/support/topic-tag/currentyear/)
 * [snippet variables](https://wordpress.org/support/topic-tag/snippet-variables/)

 * 2 replies
 * 2 participants
 * Last reply from: [Frederic Legrand](https://wordpress.org/support/users/fredericlegrand/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/year-meta/#post-13591005)
 * Status: resolved