Site-kit-wp: Allow programmatic removal of Site Kit's meta tag

Created on 3 Dec 2019  路  10Comments  路  Source: google/site-kit-wp

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._

Acceptance criteria

Implementation Brief

Changelog entry

Enhancement

Most helpful comment

Please move it to a "normal" function so we can remove_action. Thank you.

All 10 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Loganson picture Loganson  路  5Comments

felixarntz picture felixarntz  路  4Comments

quangbahoa picture quangbahoa  路  5Comments

aaemnnosttv picture aaemnnosttv  路  3Comments

felixarntz picture felixarntz  路  5Comments