# sellkit/trunk/includes/admin/notices/woocommerce-orders.php

SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster, version trunk. 66 lines.

- Page: https://pluginprobe.com/plugins/sellkit/trunk/code/includes/admin/notices/woocommerce-orders.php
- Raw: https://pluginprobe.com/plugins/sellkit/trunk/raw/includes/admin/notices/woocommerce-orders.php
- Modified: 2025-10-06T16:06:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sellkit/trunk/code/includes/admin/notices/woocommerce-orders.php#L10-L20`.

```php
<?php

namespace Sellkit\Admin\Notices;

defined( 'ABSPATH' ) || die();

/**
 * Woocommerce main page class.
 *
 * @since 1.1.0
 */
class Woocommerce_Orders extends Notice_Base {

	/**
	 * Notice key.
	 *
	 * @since 1.1.0
	 * @var string
	 */
	public $key = 'woocommerce-page-notices';

	/**
	 * Woocommerce_Main_Page constructor.
	 *
	 * @since 1.1.0
	 */
	public function __construct() {
		parent::__construct();

		$this->content = esc_html__( 'Increase average order value for your WooCommerce store with advanced checkout optimization.', 'sellkit' );
		$this->buttons = [
			'https://getsellkit.com/pricing/?utm_source=wp-dashboard&utm_campaign=gopro&utm_medium=' . $this->active_theme => esc_html__( 'Upgrade to SellKit Pro', 'sellkit' ),
		];
	}

	/**
	 * Check if notice is valid or not.
	 *
	 * @since 1.1.0
	 * @return bool
	 */
	public function is_valid() {
		if ( in_array( $this->key, $this->dismissed_notices, true ) || sellkit()->has_pro || defined( 'SELLKIT_BUNDLED' ) ) {
			return false;
		}

		$current_page = ! empty( $_GET['post_type'] ) ? htmlentities( wp_unslash( $_GET['post_type'] ) ) : ''; // phpcs:ignore

		if ( 'shop_order' === $current_page ) {
			return true;
		}

		return false;
	}

	/**
	 * Set the priority of notice.
	 *
	 * @since 1.1.0
	 * @return int
	 */
	public function priority() {
		return 1;
	}
}

```
