Plugin Directory

Changeset 2974970


Ignore:
Timestamp:
10/05/2023 05:34:45 AM (2 years ago)
Author:
oscomsupport
Message:

Bug Fixed issue Is protected checkbox save.
Revamp Plugin with new features and clean code in the coming versions

Location:
content-sell-licenses-for-woocommerce
Files:
36 added
3 edited

Legend:

Unmodified
Added
Removed
  • content-sell-licenses-for-woocommerce/trunk/content-sell-woocommerce.php

    r2924135 r2974970  
    44Plugin URI: https:///content-sell-in-woocommerce/
    55Description: Protect & Sell Post/Page contents using WooCommerce.
    6 Version: 1.0.5
     6Version: 1.0.6
    77Author: Amin Y
    88Author URI: https://qcompsolutions.com
    99Text Domain: content-sell-in-woocommerce
    1010Domain Path: /languages
    11 Copyright: © 2022 Qcompsolutions.com
    12 WC tested up to: 6.2.2
     11Copyright: © 2023 Qcompsolutions.com
     12WC tested up to: 6.3.1
    1313License: GNU General Public License v3.0
    1414License URI: http://www.gnu.org/licenses/gpl-3.0.html
  • content-sell-licenses-for-woocommerce/trunk/inc/classes/csellwoo-frontend.php

    r2924135 r2974970  
    686686        function save_csellwoo_post($post_id) {
    687687           
    688             if(isset($_POST['is_protected']))
     688
     689            if(isset($_POST['is_protected']) || isset($_POST['ptext1']))
    689690            {
     691                if(!isset($_POST['is_protected'])) $is_protected=0;
     692                else  $is_protected=(int)$_POST['is_protected'];
     693               
    690694            $arr = array('a' => array('href' => array(), 'title' => array()), 'img' => array('alt' => array(), 'class' => array(), 'height' => array(), 'src' => array(), 'width' => array(),), 'br' => array(), 'em' => array(), 'strong' => array(),);
    691695            update_post_meta($post_id, 'ptext1', wp_kses($_POST['ptext1'], $arr));
    692             update_post_meta($post_id, 'is_protected', (int)$_POST['is_protected']);
     696            update_post_meta($post_id, 'is_protected', $is_protected);
    693697           
    694698            }
    695         }
     699           
     700        }
    696701        /**
    697702         * Submit license data in cart page, Proceed to Checkout button link click : ajax request.
  • content-sell-licenses-for-woocommerce/trunk/readme.txt

    r2924135 r2974970  
    33Tags: woocommerce, content sell, Videos and training material in pages with licensed access, protected pages linked with woocommerce product purchase
    44Requires at least: 5.0
    5 Tested up to: 6.2.2
    6 Stable tag: 1.0.5
     5Tested up to: 6.3.1
     6Stable tag: 1.0.6
    77License: GNU General Public License v3.0
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.