This is how to remove the generator meta tag for the WordPress AMP Plugin. This refers to the WP AMP plugin by Automattic.
The new generator meta tag was added in the AMP plugin version 0.6.0. It looks like this in your sourcecode:
<meta name="generator" content="AMP Plugin v0.6.0" />
To remove the meta tag, use the following PHP code snippet.
(See how to add PHP code to your site.)
// Remove AMP generator meta tag. add_action( 'amp_post_template_head', 'isa_remove_amp_generator_meta_tag', 2 ); function isa_remove_amp_generator_meta_tag() { remove_action( 'amp_post_template_head', 'amp_add_generator_metadata' ); }
See more ways to customize the WP AMP plugin.
Abhijeet
February 2nd, 2018 at 5:11 am
That didnt work. But following worked
Mitchell
June 25th, 2018 at 5:17 pm
Hello Isabel:
Thank you for info.
Your code worked after I changed `$accepted_args` to zero.
Best wishes,
Mitchell