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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Copy link
Member

johnclause commented Sep 4, 2015

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?

@johnclause johnclause added the question label Sep 4, 2015

@bagaweb

This comment has been minimized.

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

This comment has been minimized.

Copy link
Member

johnclause commented Oct 5, 2015

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.

@johnclause johnclause closed this Oct 5, 2015

@bagaweb

This comment has been minimized.

Copy link
Author

bagaweb commented Oct 10, 2015

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

@johnclause

This comment has been minimized.

Copy link
Member

johnclause commented Oct 10, 2015

Thanks lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.