Howto: Remove NextGen Gallery Version Meta-Tag

increase wordpress security, hide plugin version informations

Why ?#

For Security Reasons it is not recommend to show any user the version of the software you are using. Since the NGG Version 1.9 a filter was added on my request, to hide the meta-tag with the version informations:

Default HTML-Header Output of NextGenGallery#

[html]
<!– <meta name="NextGEN" version="1.9.2" /> –>
[/html]

Just insert the following code into your templates functons.php file.

PHP Code#

[php]
// hide ngg version show_nextgen_version
function global_hide_ngg_version($txt){
return ”;
}
add_filter(‘show_nextgen_version’, ‘global_hide_ngg_version’);
[/php]

That’s it, the version information is removed from the generated HTML output!

Additional#

In this case it’s strongly remcommend to remove the WordPress version informations, too.

Remove WordPress Version Info#

[php]
// hide generaator tags
function i_want_no_generators(){
return ”;
}
add_filter(‘the_generator’, ‘i_want_no_generators’);
[/php]