# sellkit/1.2.3/includes/contact-segmentation/operators/is-none-of.php

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

- Page: https://pluginprobe.com/plugins/sellkit/1.2.3/code/includes/contact-segmentation/operators/is-none-of.php
- Raw: https://pluginprobe.com/plugins/sellkit/1.2.3/raw/includes/contact-segmentation/operators/is-none-of.php
- Modified: 2022-06-30T09:22:52+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/1.2.3/code/includes/contact-segmentation/operators/is-none-of.php#L10-L20`.

```php
<?php

namespace Sellkit\Contact_Segmentation\Operators;

use Sellkit\Contact_Segmentation\Operator_Base;

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

/**
 * Class Sellkit_Is_None_Of_Operator
 *
 * @package Sellkit\Contact_Segmentation\Conditions
 * @since 1.1.0
 */
class Is_None_Of extends Operator_Base {

	/**
	 * Condition name.
	 *
	 * @since 1.1.0
	 */
	public function get_name() {
		return 'is-none-of';
	}

	/**
	 * Condition title.
	 *
	 * @since 1.1.0
	 */
	public function get_title() {
		return __( 'is none of', 'sellkit' );
	}

	/**
	 * Conditions.
	 *
	 * @since 1.1.0
	 */
	public function get_conditions() {
		return [
			'user-device',
			'user-role',
			'purchased-product',
			'viewed-category',
			'viewed-product',
			'purchased-category',
			'customer-value',
			'cart-tag',
			'shipping-country',
			'billing-country',
			'cart-category',
			'cart-item',
			'referral-source-internal-post',
			'referral-source-product-category',
			'referral-source-post-category',
			'visitor-country',
			'visitor-timezone',
			'visitor-currency',
			'visitor-language',
			'customer-value',
		];
	}

	/**
	 * Condition title.
	 *
	 * @since 1.1.0
	 * @param mixed $value            mixed The value of current value.
	 * @param mixed $condition_value  The value of condition input.
	 */
	public function is_valid( $value, $condition_value ) {
		if ( ! is_array( $value ) ) {
			$value = [ $value ];
		}

		if ( empty( array_intersect( $value, $condition_value ) ) ) {
			return true;
		}

		return false;
	}
}

```
