# sellkit/1.2.9/includes/contact-segmentation/operators/before.php

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

- Page: https://pluginprobe.com/plugins/sellkit/1.2.9/code/includes/contact-segmentation/operators/before.php
- Raw: https://pluginprobe.com/plugins/sellkit/1.2.9/raw/includes/contact-segmentation/operators/before.php
- Modified: 2022-09-08T06:36:34+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.9/code/includes/contact-segmentation/operators/before.php#L10-L20`.

```php
<?php

namespace Sellkit\Contact_Segmentation\Operators;

use Sellkit\Contact_Segmentation\Operator_Base;

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

/**
 * Class Before.
 *
 * @package Sellkit\Contact_Segmentation\Conditions
 * @since 1.1.0
 */
class Before extends Operator_Base {

	/**
	 * Condition name.
	 *
	 * @since 1.1.0
	 */
	public function get_name() {
		return 'before';
	}

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

	/**
	 * Conditions.
	 *
	 * @since 1.1.0
	 */
	public function get_conditions() {
		return [
			'first-order-date',
			'last-order-date',
			'signup-date',
		];
	}

	/**
	 * 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 ( $value < $condition_value ) {
			return true;
		}

		return false;
	}
}

```
