protected function convert_prop( $value, Papi_Core_Conditional_Rule $rule ) {
		$meta_id    = papi_get_meta_id();
		$meta_type  = papi_get_meta_type();
		$entry_type = papi_get_entry_type_by_meta_id( $meta_id, $meta_type );

		if ( ! papi_is_empty( $value ) && $entry_type instanceof Papi_Entry_Type !== false ) {
			$property = $entry_type->get_property( $rule->slug );

			if ( papi_is_property( $property ) ) {
				$prop_value = $property->format_value(
					$value,
					$property->slug,
					$meta_id
				);

				$prop_value = papi_filter_format_value(
					$property->type,
					$prop_value,
					$property->slug,
					$meta_id,
					$meta_type
				);

				$prop_value = $this->get_deep_value(
					$rule->slug,
					$prop_value
				);

				if ( gettype( $prop_value ) === gettype( $rule->value ) ) {
					return $prop_value;
				}
			}

			return $value;
		}

		return $value;
	}
protected function convert_prop( $value, Papi_Core_Conditional_Rule $rule ) {
		$meta_id    = papi_get_meta_id();
		$meta_type  = papi_get_meta_type();
		$entry_type = papi_get_entry_type_by_meta_id( $meta_id, $meta_type );

		if ( ! papi_is_empty( $value ) && $entry_type instanceof Papi_Entry_Type !== false ) {
			$property = $entry_type->get_property( $rule->slug );

			if ( papi_is_property( $property ) ) {
				$prop_value = $property->format_value(
					$value,
					$property->slug,
					$meta_id
				);

				$prop_value = papi_filter_format_value(
					$property->type,
					$prop_value,
					$property->slug,
					$meta_id,
					$meta_type
				);

				$prop_value = $this->get_deep_value(
					$rule->slug,
					$prop_value
				);

				if ( gettype( $prop_value ) === gettype( $rule->value ) ) {
					return $prop_value;
				}
			}

			return $value;
		}

		return $value;
	}
protected function convert_prop ( $ value , Papi_Core_Conditional_Rule $ rule ) { $ meta_id = papi_get_meta_id ( ) ; $ meta_type = papi_get_meta_type ( ) ; $ entry_type = papi_get_entry_type_by_meta_id ( $ meta_id , $ meta_type ) ; if ( ! papi_is_empty ( $ value ) && $ entry_type instanceof Papi_Entry_Type !== false ) { $ property = $ entry_type -> get_property ( $ rule -> slug ) ; if ( papi_is_property ( $ property ) ) { $ prop_value = $ property -> format_value ( $ value , $ property -> slug , $ meta_id ) ; $ prop_value = papi_filter_format_value ( $ property -> type , $ prop_value , $ property -> slug , $ meta_id , $ meta_type ) ; $ prop_value = $ this -> get_deep_value ( $ rule -> slug , $ prop_value ) ; if ( gettype ( $ prop_value ) === gettype ( $ rule -> value ) ) { return $ prop_value ; } } return $ value ; } return $ value ; }
Convert value from a property.

@param  mixed $value
@param  Papi_Core_Conditional_Rule $rule

@return mixed
Convert value from a property .