Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove <meta name="generator" #244

Closed
bagaweb opened this issue Sep 4, 2015 · 5 comments
Closed

remove <meta name="generator" #244

bagaweb opened this issue Sep 4, 2015 · 5 comments
Labels

Comments

@bagaweb
Copy link

bagaweb commented Sep 4, 2015

Sorry for writing here but I cannot reach the plugin page on wordpress.org anymore...
Just wondering if there's a way to remove the <meta name="generator" tag from header.
Thanks!

@johnclause
Copy link
Member

cannot reach the plugin page on wordpress.org anymore

https://qtranslatexteam.wordpress.com/2015/09/03/why-qtranslate-x-disappeared-from-wordpress-repository/

way to remove the <meta name="generator" tag from header

This sounds like a request for a new option. Why would you care? This improves statistics, makes it easier to troubleshoot. Many plugins put this line, WordPress itself, WooCommerce, etc. I did not see an option to disable it in WordPress or Woocommerce, for example?

@bagaweb
Copy link
Author

bagaweb commented Sep 5, 2015

I see the plugin is back today.
I'd like to remove it for security reason.
For example it can be removed from WordPress using this function:
remove_action( 'wp_head', 'wp_generator' );

@johnclause
Copy link
Member

Ok, I moved that line into a separate action: 'qtranxf_wp_head_meta_generator'
remove_action('wp_head','qtranxf_wp_head_meta_generator'); should now remove it.
The action gets added within 'plugins_loaded' action, so you know the drill ...

Next time, I would appreciate, if you implement such simple thing yourselves and submit with a pull request at github.

Please, consider making donation: https://qtranslatexteam.wordpress.com/donations/, if you have not done so.

I am closing this issue for now to save the future clicks, we can still write into a closed issue, or we can re-open it, if needed.

@bagaweb
Copy link
Author

bagaweb commented Oct 10, 2015

Beautiful, thanks a lot!
I made a donation for your team.

@johnclause
Copy link
Member

Thanks lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants