PluginProbe ʕ •ᴥ•ʔ
PiWeb Product Enquiry or product catalog for WooCommerce / 2.2.33.37
PiWeb Product Enquiry or product catalog for WooCommerce v2.2.33.37
2.2.34.43 2.2.34.42 2.2.34.41 2.2.34.40 2.2.34.39 trunk 2.2.22 2.2.26 2.2.33.16 2.2.33.17 2.2.33.19 2.2.33.20 2.2.33.21 2.2.33.22 2.2.33.23 2.2.33.24 2.2.33.26 2.2.33.27 2.2.33.29 2.2.33.30 2.2.33.31 2.2.33.32 2.2.33.33 2.2.33.34 2.2.33.36 2.2.33.37 2.2.33.39 2.2.33.40 2.2.33.41 2.2.33.42 2.2.33.43 2.2.33.44 2.2.33.46 2.2.33.47 2.2.33.49 2.2.34.0 2.2.34.1 2.2.34.10 2.2.34.11 2.2.34.12 2.2.34.13 2.2.34.14 2.2.34.16 2.2.34.17 2.2.34.19 2.2.34.2 2.2.34.20 2.2.34.21 2.2.34.22 2.2.34.23 2.2.34.24 2.2.34.26 2.2.34.27 2.2.34.29 2.2.34.3 2.2.34.30 2.2.34.31 2.2.34.32 2.2.34.33 2.2.34.34 2.2.34.36 2.2.34.37 2.2.34.4 2.2.34.6 2.2.34.7 2.2.34.9
enquiry-quotation-for-woocommerce / includes / class-pisol-enquiry-quotation-woocommerce-activator.php
enquiry-quotation-for-woocommerce / includes Last commit date
background.png 1 year ago banner-sample.php 1 year ago class-pisol-enquiry-quotation-woocommerce-activator.php 1 year ago class-pisol-enquiry-quotation-woocommerce-deactivator.php 1 year ago class-pisol-enquiry-quotation-woocommerce-i18n.php 1 year ago class-pisol-enquiry-quotation-woocommerce-loader.php 1 year ago class-pisol-enquiry-quotation-woocommerce.php 1 year ago conflict-fixer.php 1 year ago includes.php 1 year ago index.php 1 year ago pisol.class.form.php 1 year ago pisol.class.promotion.php 1 year ago review-icon.svg 1 year ago review.php 1 year ago
class-pisol-enquiry-quotation-woocommerce-activator.php
27 lines
1 <?php
2
3 class Pisol_Enquiry_Quotation_Woocommerce_Activator {
4
5 public static function activate() {
6 add_option('pi_ewq_do_activation_redirect', true);
7 self::createEnquiryCartPage();
8 }
9
10 public static function createEnquiryCartPage(){
11 $page_saved = get_option('pi_eqw_enquiry_cart',0);
12 if($page_saved == 0 || $page_saved == ""){
13 $page = array(
14 'post_title' => __('Enquiry Cart'),
15 'post_type' => 'page',
16 'post_content' => '[pisol_enquiry_cart]',
17 'post_status' => 'publish',
18 'comment_status' => 'closed',
19 'ping_status' => 'closed',
20 );
21 $page_id = wp_insert_post($page, false);
22 update_option('pi_eqw_enquiry_cart', $page_id);
23 }
24 }
25
26 }
27