File "AdminConditional.php"

Full Path: /home/warrior1/public_html/plugins/google-listings-and-ads/src/Infrastructure/AdminConditional.php
File size: 421 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
declare( strict_types=1 );

namespace Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure;

/**
 * Trait AdminConditional
 *
 * @package Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure
 */
trait AdminConditional {

	/**
	 * Check whether this object is currently needed.
	 *
	 * @return bool Whether the object is needed.
	 */
	public static function is_needed(): bool {
		return is_admin();
	}
}