🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-19 12:58:12 | PHP 8.1.34
📂
/ (Root)
/
home
/
therahul
/
thedasstores.com
/
wp-content
/
plugins
/
google-listings-and-ads
/
src
/
Google
📍 /home/therahul/thedasstores.com/wp-content/plugins/google-listings-and-ads/src/Google
🔄 Refresh
✏️
Editing: SiteVerificationMeta.php
Writable
<?php declare( strict_types=1 ); namespace Automattic\WooCommerce\GoogleListingsAndAds\Google; use Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure\Registerable; use Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure\Service; use Automattic\WooCommerce\GoogleListingsAndAds\Options\OptionsAwareInterface; use Automattic\WooCommerce\GoogleListingsAndAds\Options\OptionsAwareTrait; use Automattic\WooCommerce\GoogleListingsAndAds\Options\OptionsInterface; defined( 'ABSPATH' ) || exit; /** * Class SiteVerificationMeta * * @package Automattic\WooCommerce\GoogleListingsAndAds\Google */ class SiteVerificationMeta implements OptionsAwareInterface, Registerable, Service { use OptionsAwareTrait; /** * Add the meta header hook. */ public function register(): void { add_action( 'wp_head', function () { $this->display_meta_token(); } ); } /** * Display the meta tag with the site verification token. */ protected function display_meta_token() { $settings = $this->options->get( OptionsInterface::SITE_VERIFICATION, [] ); if ( empty( $settings['meta_tag'] ) ) { return; } echo '<!-- Google site verification - Google for WooCommerce -->' . PHP_EOL; echo wp_kses( $settings['meta_tag'], [ 'meta' => [ 'name' => true, 'content' => true, ], ] ) . PHP_EOL; } }
💾 Save Changes
❌ Cancel