# sellkit/1.6.2/includes/contact-segmentation/operators/is-accepted.php

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

- Page: https://pluginprobe.com/plugins/sellkit/1.6.2/code/includes/contact-segmentation/operators/is-accepted.php
- Raw: https://pluginprobe.com/plugins/sellkit/1.6.2/raw/includes/contact-segmentation/operators/is-accepted.php
- Modified: 2023-04-13T06:28:42+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.6.2/code/includes/contact-segmentation/operators/is-accepted.php#L10-L20`.

```php
<?php

namespace Sellkit\Contact_Segmentation\Operators;

use Sellkit\Contact_Segmentation\Operator_Base;

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

/**
 * Class Sellkit_Is_Accepted_Operator
 *
 * @package Sellkit\Contact_Segmentation\Conditions
 * @since 1.5.0
 */
class Is_Accepted extends Operator_Base {

	/**
	 * Condition name.
	 *
	 * @since 1.5.0
	 */
	public function get_name() {
		return 'is-accepted';
	}

	/**
	 * Condition title.
	 *
	 * @since 1.5.0
	 */
	public function get_title() {
		return esc_html__( 'is accepted', 'sellkit' );
	}

	/**
	 * Conditions.
	 *
	 * @since 1.5.0
	 */
	public function get_conditions() {
		return [
			'upsell',
			'downsell',
		];
	}

	/**
	 * Condition title.
	 *
	 * @since 1.5.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 ( in_array( $condition_value['value'], $value, true ) ) {
			return true;
		}

		return false;
	}
}

```
