AcfBulkEditNotice.php
3 months ago
AcfNotice.php
3 months ago
AcfSortAndFilterNotice.php
3 months ago
EventsCalendarNotice.php
3 months ago
GravityFormsNotice.php
3 months ago
IntegrationNotice.php
3 months ago
IntegrationNoticeRenderer.php
3 months ago
PostEditReferrerAware.php
3 months ago
UsageAwareNotice.php
3 months ago
WooCommerceOrdersFilterNotice.php
3 months ago
WooCommerceOrdersNotice.php
3 months ago
WooCommerceOrdersScreenAware.php
3 months ago
WooCommerceOrdersSearchNotice.php
3 months ago
WooCommerceProductsBulkEditNotice.php
3 months ago
WooCommerceProductsFilterNotice.php
3 months ago
WooCommerceProductsNotice.php
3 months ago
WooCommerceProductsSearchNotice.php
3 months ago
WooCommerceOrdersScreenAware.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC\Check\Integration; |
| 6 | |
| 7 | use AC\Screen; |
| 8 | |
| 9 | trait WooCommerceOrdersScreenAware |
| 10 | { |
| 11 | |
| 12 | private function is_woocommerce_orders_screen(Screen $screen): bool |
| 13 | { |
| 14 | $is_hpos_orders = 'woocommerce_page_wc-orders' === $screen->get_id(); |
| 15 | $is_legacy_orders = 'edit' === $screen->get_base() && 'shop_order' === $screen->get_post_type(); |
| 16 | |
| 17 | return $is_hpos_orders || $is_legacy_orders; |
| 18 | } |
| 19 | |
| 20 | } |
| 21 |