Title: Yoast version in sourcecode
Last modified: June 29, 2020

---

# Yoast version in sourcecode

 *  Resolved [tomonsweb](https://wordpress.org/support/users/tomonsweb/)
 * (@tomonsweb)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/yoast-version-in-sourcecode/)
 * Hello,
 * The Yoast SEO version is visible in the sourcecode of my website.
    You can hide
   the version in sourcecode with the following code
 *     ```
       // Remove Yoast version from sourcecode view
       add_filter( 'wpseo_hide_version', '__return_true' );
       ```
   
 * But this only works for the Premium version.
 * **Security:**
    Showing the version of a plugin in the source code is a security
   risk, because a potential hacker will know the version of de plugin and can use
   earlier vulnerabilities.
 * Is there a way to hide the plugin version without buying the premium version?
    -  This topic was modified 5 years, 9 months ago by [tomonsweb](https://wordpress.org/support/users/tomonsweb/).

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

 *  [Jerlyn](https://wordpress.org/support/users/jerparx/)
 * (@jerparx)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/yoast-version-in-sourcecode/#post-13048084)
 * Hi [@tomonsweb](https://wordpress.org/support/users/tomonsweb/) ,
 * We understand you want to hide the plugin version for security reasons. While
   the filter mentioned above only works with Premium, you or your developer can
   use [other filters](https://gist.github.com/paulcollett/4c81c4f6eb85334ba076)
   to customize this feature.
    Typically code snippets are added to your theme’s
   functions.php file. If you’re not familiar with using code snippets, we’d like
   to refer you to the WordPress documentation on how to use a filter.
 *  Thread Starter [tomonsweb](https://wordpress.org/support/users/tomonsweb/)
 * (@tomonsweb)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/yoast-version-in-sourcecode/#post-13048650)
 * Hello [@jerparx](https://wordpress.org/support/users/jerparx/),
 * Thanks for your answer, i’ve added the filter you suggested in the functions.
   php file
 * `add_filter( 'wpseo_debug_markers', '__return_false' );`
 * It works now.

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

The topic ‘Yoast version in sourcecode’ 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [tomonsweb](https://wordpress.org/support/users/tomonsweb/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/yoast-version-in-sourcecode/#post-13048650)
 * Status: resolved