• Resolved tomonsweb

    (@tomonsweb)


    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.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @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 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

    (@tomonsweb)

    Hello @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.