content = esc_html__( 'Increase average order value for your WooCommerce store with advanced checkout optimization.', 'sellkit' ); $this->buttons = [ 'https://getsellkit.com/pricing/?utm_source=plugin-promotion-woocommerce-orders&utm_medium=wp-dashboard&utm_campaign=upgrade-to-pro' => 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; } }