Initial commit xmarticaims
This commit is contained in:
+113
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
/**
|
||||
* Placeholder Class that handles conditional logic for device type
|
||||
*
|
||||
* @package WPCode
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* The WPCode_Conditional_Device_Lite class.
|
||||
*/
|
||||
class WPCode_Conditional_Device_Lite extends WPCode_Conditional_Type {
|
||||
|
||||
/**
|
||||
* The type unique name (slug).
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $name = 'device';
|
||||
|
||||
/**
|
||||
* The type category.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $category = 'who';
|
||||
|
||||
/**
|
||||
* Set the translatable label.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function set_label() {
|
||||
$this->label = __( 'Device', 'insert-headers-and-footers' ) . ' (PRO)';
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the type options for the admin mainly.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function load_type_options() {
|
||||
$this->options = array(
|
||||
'device_type' => array(
|
||||
'label' => __( 'Device Type', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Target either desktop or mobile devices.', 'insert-headers-and-footers' ),
|
||||
'type' => 'select',
|
||||
'upgrade' => array(
|
||||
'title' => __( 'Device Type Rules are a Pro Feature', 'insert-headers-and-footers' ),
|
||||
'text' => __( 'Get access to advanced device type conditional logic rules by upgrading to PRO today.', 'insert-headers-and-footers' ),
|
||||
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'device-type' ),
|
||||
),
|
||||
'options' => array(
|
||||
array(
|
||||
'label' => __( 'Desktop', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
array(
|
||||
'label' => __( 'Mobile', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
'browser' => array(
|
||||
'label' => __( 'Browser Type', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Target specific visitor web browsers.', 'insert-headers-and-footers' ),
|
||||
'type' => 'select',
|
||||
'upgrade' => array(
|
||||
'title' => __( 'Browser Type Rules are a Pro Feature', 'insert-headers-and-footers' ),
|
||||
'text' => __( 'Get access to advanced device conditional logic rules by upgrading to PRO today.', 'insert-headers-and-footers' ),
|
||||
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'browser' ),
|
||||
),
|
||||
),
|
||||
'os' => array(
|
||||
'label' => __( 'Operating System', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Target operating systems like Windows, Mac OS or Linux.', 'insert-headers-and-footers' ),
|
||||
'type' => 'select',
|
||||
'upgrade' => array(
|
||||
'title' => __( 'Operating System Rules are a Pro Feature', 'insert-headers-and-footers' ),
|
||||
'text' => __( 'Get access to advanced operating system conditional logic rules by upgrading to PRO today.', 'insert-headers-and-footers' ),
|
||||
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'os' ),
|
||||
),
|
||||
),
|
||||
'cookie_name' => array(
|
||||
'label' => __( 'Cookie Name', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Load or hide a snippet by cookie name.', 'insert-headers-and-footers' ),
|
||||
'type' => 'text',
|
||||
'upgrade' => array(
|
||||
'title' => __( 'Cookie-based Rules are a Pro Feature', 'insert-headers-and-footers' ),
|
||||
'text' => __( 'Get access to advanced cookie conditional logic rules by upgrading to PRO today.', 'insert-headers-and-footers' ),
|
||||
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'cookie-name' ),
|
||||
),
|
||||
),
|
||||
'cookie_value' => array(
|
||||
'label' => __( 'Cookie Value', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Load or hide a snippet by cookie value.', 'insert-headers-and-footers' ),
|
||||
'type' => 'text',
|
||||
'upgrade' => array(
|
||||
'title' => __( 'Cookie-based Rules are a Pro Feature', 'insert-headers-and-footers' ),
|
||||
'text' => __( 'Get access to advanced cookie conditional logic rules by upgrading to PRO today.', 'insert-headers-and-footers' ),
|
||||
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'cookie-value' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
new WPCode_Conditional_Device_Lite();
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
/**
|
||||
* Class that handles conditional logic related to Easy Digital Downloads.
|
||||
*
|
||||
* @package WPCode
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* The WPCode_Conditional_EDD class.
|
||||
*/
|
||||
class WPCode_Conditional_EDD_Lite extends WPCode_Conditional_Type {
|
||||
|
||||
/**
|
||||
* The type unique name (slug).
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $name = 'edd';
|
||||
|
||||
/**
|
||||
* The type category.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $category = 'ecommerce';
|
||||
|
||||
/**
|
||||
* Set the translatable label.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function set_label() {
|
||||
$this->label = 'Easy Digital Downloads (PRO)';
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the type options for the admin mainly.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function load_type_options() {
|
||||
$this->options = array(
|
||||
'edd_page' => array(
|
||||
'label' => __( 'EDD Page', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Load the snippet on specific Easy Digital Downloads pages.', 'insert-headers-and-footers' ),
|
||||
'type' => 'select',
|
||||
'upgrade' => array(
|
||||
'title' => __( 'Easy Digital Downloads Page Rules is a Pro Feature', 'insert-headers-and-footers' ),
|
||||
'text' => __( 'Get access to advanced conditional logic rules for Easy Digital Downloads by upgrading to PRO today.', 'insert-headers-and-footers' ),
|
||||
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'edd-page' ),
|
||||
),
|
||||
'options' => array(
|
||||
array(
|
||||
'label' => __( 'Checkout Page', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
array(
|
||||
'label' => __( 'Confirmation Page', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
array(
|
||||
'label' => __( 'Single Download Page', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
array(
|
||||
'label' => __( 'Download Category Page', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
array(
|
||||
'label' => __( 'Download Tag Page', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
new WPCode_Conditional_EDD_Lite();
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
/**
|
||||
* Placeholder class that handles conditional logic based on location.
|
||||
*
|
||||
* @package WPCode
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The WPCode_Conditional_Location class.
|
||||
*/
|
||||
class WPCode_Conditional_Location_Lite extends WPCode_Conditional_Type {
|
||||
|
||||
/**
|
||||
* The type unique name (slug).
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $name = 'location';
|
||||
|
||||
/**
|
||||
* The type category.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $category = 'who';
|
||||
|
||||
/**
|
||||
* Set the type options for the admin mainly.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function load_type_options() {
|
||||
$this->options = array(
|
||||
'country' => array(
|
||||
'label' => __( 'Country', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Limit loading the snippet based on the visitor\'s country.', 'insert-headers-and-footers' ),
|
||||
'type' => 'select',
|
||||
'options' => array(),
|
||||
'upgrade' => array(
|
||||
'title' => __( 'Location Rules are a Pro Feature', 'insert-headers-and-footers' ),
|
||||
'text' => __( 'Get access to location-based conditional logic rules by upgrading to PRO today.', 'insert-headers-and-footers' ),
|
||||
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'location-country' ),
|
||||
),
|
||||
),
|
||||
'continent' => array(
|
||||
'label' => __( 'Continent', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Target entire continents with ease.', 'insert-headers-and-footers' ),
|
||||
'type' => 'select',
|
||||
'options' => array(),
|
||||
'upgrade' => array(
|
||||
'title' => __( 'Location Rules are a Pro Feature', 'insert-headers-and-footers' ),
|
||||
'text' => __( 'Get access to location-based conditional logic rules by upgrading to PRO today.', 'insert-headers-and-footers' ),
|
||||
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'location-continent' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the translatable label.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function set_label() {
|
||||
$this->label = __( 'Location', 'insert-headers-and-footers' ) . ' (PRO)';
|
||||
}
|
||||
}
|
||||
|
||||
new WPCode_Conditional_Location_Lite();
|
||||
+91
@@ -0,0 +1,91 @@
|
||||
<?php
|
||||
/**
|
||||
* Class that handles conditional logic related to MemberPress.
|
||||
*
|
||||
* @package WPCode
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The WPCode_Conditional_MemberPress class.
|
||||
*/
|
||||
class WPCode_Conditional_MemberPress_Lite extends WPCode_Conditional_Type {
|
||||
|
||||
/**
|
||||
* The type unique name (slug).
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $name = 'memberpress';
|
||||
|
||||
/**
|
||||
* The type category.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $category = 'ecommerce';
|
||||
|
||||
/**
|
||||
* Set the translatable label.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function set_label() {
|
||||
$this->label = 'MemberPress (PRO)';
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the type options for the admin mainly.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function load_type_options() {
|
||||
$this->options = array(
|
||||
'memberpress_page' => array(
|
||||
'label' => __( 'MemberPress Page', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Load the snippet on specific MemberPress pages.', 'insert-headers-and-footers' ),
|
||||
'type' => 'select',
|
||||
'upgrade' => array(
|
||||
'title' => __( 'MemberPress Page Rules is a Pro Feature', 'insert-headers-and-footers' ),
|
||||
'text' => __( 'Get access to advanced conditional logic rules for MemberPress by upgrading to PRO today.', 'insert-headers-and-footers' ),
|
||||
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'memberpress-page' ),
|
||||
),
|
||||
'options' => array(
|
||||
array(
|
||||
'label' => __( 'Registration Page', 'insert-headers-and-footers' ),
|
||||
'value' => 'registration',
|
||||
),
|
||||
array(
|
||||
'label' => __( 'Thank You Page', 'insert-headers-and-footers' ),
|
||||
'value' => 'thankyou',
|
||||
),
|
||||
array(
|
||||
'label' => __( 'Account Page', 'insert-headers-and-footers' ),
|
||||
'value' => 'account',
|
||||
),
|
||||
array(
|
||||
'label' => __( 'Login Page', 'insert-headers-and-footers' ),
|
||||
'value' => 'login',
|
||||
),
|
||||
),
|
||||
),
|
||||
'memberpress_user' => array(
|
||||
'label' => __( 'User active membership', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Check if the current user has a specific MemberPress subscription active.', 'insert-headers-and-footers' ),
|
||||
'type' => 'select',
|
||||
'options' => array(),
|
||||
'upgrade' => array(
|
||||
'title' => __( 'MemberPress Active Membership Rules is a Pro Feature', 'insert-headers-and-footers' ),
|
||||
'text' => __( 'Get access to advanced conditional logic rules for MemberPress by upgrading to PRO today.', 'insert-headers-and-footers' ),
|
||||
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'memberpress-user' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
new WPCode_Conditional_MemberPress_Lite();
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/**
|
||||
* Class that handles conditional logic for scheduling snippets.
|
||||
*
|
||||
* @package WPCode
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* The WPCode_Conditional_Schedule_Lite class.
|
||||
*/
|
||||
class WPCode_Conditional_Schedule_Lite extends WPCode_Conditional_Type {
|
||||
|
||||
/**
|
||||
* The type unique name (slug).
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $name = 'schedule';
|
||||
|
||||
/**
|
||||
* The type category.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $category = 'advanced';
|
||||
|
||||
/**
|
||||
* Set the translatable label.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function set_label() {
|
||||
$this->label = __( 'Schedule', 'insert-headers-and-footers' ) . ' (PRO)';
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the type options for the admin mainly.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function load_type_options() {
|
||||
$this->options = array(
|
||||
'date_is' => array(
|
||||
'label' => __( 'Date', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Check whether today is before or after a date.', 'insert-headers-and-footers' ),
|
||||
'type' => 'date',
|
||||
),
|
||||
'time_is' => array(
|
||||
'label' => __( 'Date & Time', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Get more specific by also including a specific time.', 'insert-headers-and-footers' ),
|
||||
'type' => 'datetime',
|
||||
),
|
||||
'weekday' => array(
|
||||
'label' => __( 'Day of the Week', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Load the snippet on specific days of the week.', 'insert-headers-and-footers' ),
|
||||
'type' => 'select',
|
||||
'multiple' => true,
|
||||
),
|
||||
'time' => array(
|
||||
'label' => __( 'Current time', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Check whether it\'s before or after a specific time', 'insert-headers-and-footers' ),
|
||||
'type' => 'time',
|
||||
),
|
||||
);
|
||||
|
||||
foreach ( $this->options as $key => $value ) {
|
||||
$this->options[ $key ]['upgrade'] = array(
|
||||
'title' => __( 'Scheduling rules are a Pro Feature', 'insert-headers-and-footers' ),
|
||||
'text' => __( 'Upgrade today and get access to advanced scheduling conditional logic rules.', 'insert-headers-and-footers' ),
|
||||
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'schedule' ),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
new WPCode_Conditional_Schedule_Lite();
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* Class that handles conditional logic for snippets type
|
||||
*
|
||||
* @package WPCode
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* The WPCode_Conditional_Snippet class.
|
||||
*/
|
||||
class WPCode_Conditional_Snippet_Lite extends WPCode_Conditional_Type {
|
||||
|
||||
/**
|
||||
* The type unique name (slug).
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $name = 'snippet';
|
||||
|
||||
/**
|
||||
* The type category.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $category = 'advanced';
|
||||
|
||||
/**
|
||||
* Set the translatable label.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function set_label() {
|
||||
$this->label = __( 'Snippet', 'insert-headers-and-footers' ) . ' (PRO)';
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the type options for the admin mainly.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function load_type_options() {
|
||||
$this->options = array(
|
||||
'snippet_loaded' => array(
|
||||
'label' => __( 'WPCode Snippet', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Load this snippet based on another snippet being loaded.', 'insert-headers-and-footers' ),
|
||||
'type' => 'select',
|
||||
'options' => array(),
|
||||
'upgrade' => array(
|
||||
'title' => __( 'WPCode Snippet Loaded Rules are a Pro Feature', 'insert-headers-and-footers' ),
|
||||
'text' => __( 'Upgrade today and use conditional logic rules based on other WPCode snippets being loaded.', 'insert-headers-and-footers' ),
|
||||
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'snippet' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
new WPCode_Conditional_Snippet_Lite();
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
/**
|
||||
* Class that handles conditional logic related to WooCommerce.
|
||||
*
|
||||
* @package WPCode
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* The WPCode_Conditional_WooCommerce class.
|
||||
*/
|
||||
class WPCode_Conditional_WooCommerce_Lite extends WPCode_Conditional_Type {
|
||||
|
||||
/**
|
||||
* The type unique name (slug).
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $name = 'woocommerce';
|
||||
|
||||
/**
|
||||
* The type category.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $category = 'ecommerce';
|
||||
|
||||
/**
|
||||
* Set the translatable label.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function set_label() {
|
||||
$this->label = 'WooCommerce (PRO)';
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the type options for the admin mainly.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function load_type_options() {
|
||||
$this->options = array(
|
||||
'wc_page' => array(
|
||||
'label' => __( 'WooCommerce Page', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Load the snippet on specific WooCommerce pages.', 'insert-headers-and-footers' ),
|
||||
'type' => 'select',
|
||||
'upgrade' => array(
|
||||
'title' => __( 'WooCommerce Page Rules is a Pro Feature', 'insert-headers-and-footers' ),
|
||||
'text' => __( 'Get access to advanced conditional logic rules for WooCommerce by upgrading to PRO today.', 'insert-headers-and-footers' ),
|
||||
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'woocommerce-page' ),
|
||||
),
|
||||
'options' => array(
|
||||
array(
|
||||
'label' => __( 'Checkout Page', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
array(
|
||||
'label' => __( 'Thank You Page', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
array(
|
||||
'label' => __( 'Cart Page', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
array(
|
||||
'label' => __( 'Single Product Page', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
array(
|
||||
'label' => __( 'Shop Page', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
array(
|
||||
'label' => __( 'Product Category Page', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
array(
|
||||
'label' => __( 'Product Tag Page', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
array(
|
||||
'label' => __( 'My Account Page', 'insert-headers-and-footers' ),
|
||||
'value' => '',
|
||||
'disabled' => true,
|
||||
),
|
||||
),
|
||||
),
|
||||
'wc_cart' => array(
|
||||
'label' => __( 'WooCommerce Cart', 'insert-headers-and-footers' ),
|
||||
'description' => __( 'Load the snippet based on the WooCommerce Cart Contents.', 'insert-headers-and-footers' ),
|
||||
'type' => 'select',
|
||||
'options' => array(),
|
||||
'upgrade' => array(
|
||||
'title' => __( 'WooCommerce Cart Contents Rule is a Pro Feature', 'insert-headers-and-footers' ),
|
||||
'text' => __( 'Get access to advanced conditional logic rules for WooCommerce by upgrading to PRO today.', 'insert-headers-and-footers' ),
|
||||
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'woocommerce-cart' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
new WPCode_Conditional_WooCommerce_Lite();
|
||||
Reference in New Issue
Block a user