PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 1.5.8
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v1.5.8
2.7.0 2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 All 43 releases
sellkit / includes / contact-segmentation / conditions / referral-source-post-category.php

referral-source-post-category.php in SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster 1.5.8, at includes/contact-segmentation/conditions/referral-source-post-category.php

84 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Sellkit\Contact_Segmentation\Conditions;
4
5 use Sellkit\Contact_Segmentation\Conditions\Condition_Base;
6
7 defined( 'ABSPATH' ) || die();
8
9 /**
10 * Class Referral Source Post Category.
11 *
12 * @package Sellkit\Contact_Segmentation\Conditions
13 * @since 1.1.0
14 */
15 class Referral_Source_Post_Category extends Condition_Base {
16
17 /**
18 * Condition name.
19 *
20 * @since 1.1.0
21 */
22 public function get_name() {
23 return 'referral-source-post-category';
24 }
25
26 /**
27 * Condition title.
28 *
29 * @since 1.1.0
30 */
31 public function get_title() {
32 return __( 'Referral Source (post Category)', 'sellkit' );
33 }
34
35 /**
36 * Condition type.
37 *
38 * @since 1.1.0
39 */
40 public function get_type() {
41 return self::SELLKIT_MULTISELECT_CONDITION_VALUE;
42 }
43
44 /**
45 * Get the options
46 *
47 * @since 1.1.0
48 * @return array
49 */
50 public function get_options() {
51 $input_value = sellkit_htmlspecialchars( INPUT_GET, 'input_value' );
52
53 return sellkit_get_terms( 'category', sanitize_text_field( $input_value ) );
54 }
55
56 /**
57 * It is pro feature or not.
58 *
59 * @since 1.1.0
60 */
61 public function is_pro() {
62 return true;
63 }
64
65 /**
66 * All the conditions are not searchable by default.
67 *
68 * @return false
69 * @since 1.1.0
70 */
71 public function is_searchable() {
72 return true;
73 }
74
75 /**
76 * Check if the condition is active or not.
77 *
78 * @return bool
79 */
80 public function is_active() {
81 return false;
82 }
83 }
84