Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
wp-content
/
plugins
/
google-listings-and-ads
/
src
/
Infrastructure
:
AdminConditional.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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(); } }