Currently the meta tag placed by Site Kit in a website's source code cannot be accessed for removal by remove_action due to an anonymous function. Per a request in the forums, there are use cases/ preferences to not have it.
_Do not alter or remove anything below. The following sections will be managed by moderators only._
Please move it to a "normal" function so we can remove_action. Thank you.
I find it absurd to see the version of the plugins in a meta tag. Why give clues to the enemy?
the remove part dont work:
remove_action( 'wp_head', 'display_site_kit_meta' );
How to taget the site kit metatag in a remove action?
I tried this, but it doesn't work.
remove_action('wp_head', array( \Google\Site_Kit\Plugin::get_instance(), 'display_site_kit_meta' ), 999 );
Any ideas...?
Why give clues to the enemy? !!!
Yeah, please fix this!
Any updates on this?
As this is still not resolved...
Here is a temporary fix to mask the version number. Just add this to wp-config.php
`
// temp fix to hide Google site kit version number
define('GOOGLESITEKIT_VERSION', 'none');`
Can we please have it fixed?
Hello, is anybody reading this issues at all? 11 months since we reported this issue and still not fixed?
Come on Googlers, what's up?
Most helpful comment
Please move it to a "normal" function so we can
remove_action. Thank you.