Welcome to GPLDL - we are still beta - please report any bugs via the contact form.

GPLDLGPLDL
GPLDL
Download the most popular GPL licensed Premium WordPress Themes & Plugins and WooCommerce Extensions for FREE!
  • Blog
    • Blog Articles
    • Latest Updates & Additions
  • Repository
    • Full Repository
    • Premium WordPress Themes
    • Premium WordPress Plugins
    • Premium WooCommerce Extensions
    • Special Gifts for Premium Members
    • Tutorials
  • Forum
  • Free Membership
  • Donations
  • My GPLDL Account
  • Sign In
Menu back  

Reply To: YITH premium plugin activation

June 3, 2019 at 9:05 am #21402
Rafal Kurka
Participant

Does anyone know how to null this one?


<?php
/**
* This file belongs to the YIT Plugin Framework.
*
* This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.gnu.org/licenses/gpl-3.0.txt
*/

if ( !defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly

if ( ! class_exists( 'YIT_Plugin_Licence' ) ) {
/**
* YIT Licence Panel
*
* Setting Page to Manage Products
*
* @class YIT_Licence
* @package YITH
* @since 1.0
* @author Andrea Grillo <[email protected]>
*/
class YIT_Plugin_Licence {
/**
* @var object The single instance of the class
* @since 1.0
*/
protected static $_instance = null;

/**
* Constructor
*
* @since 1.0
* @author Andrea Grillo <[email protected]>
*/
public function __construct() {
//Silence is golden
}

/**
* Premium products registration
*
* @param $init string | The products identifier
* @param $secret_key string | The secret key
* @param $product_id string | The product id
*
* @return void
*
* @since 1.0
* @author Andrea Grillo <[email protected]>
*/
public function register( $init, $secret_key, $product_id ){
if( ! function_exists( 'YITH_Plugin_Licence' ) ){
//Try to load YITH_Plugin_Licence class
yith_plugin_fw_load_update_and_licence_files();
}

YITH_Plugin_Licence()->register( $init, $secret_key, $product_id );
}

/**
* Main plugin Instance
*
* @static
* @return object Main instance
*
* @since 1.0
* @author Andrea Grillo <[email protected]>
*/
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
}

return self::$_instance;
}

/**
* Get license activation URL
*
* @author Andrea Grillo <[email protected]>
* @since 3.0.17
*/
public static function get_license_activation_url(){
return function_exists( 'YITH_Plugin_Licence' ) ? YITH_Plugin_Licence()->get_license_activation_url() : true;
}
add_action (‘admin_notices’, function () {$ this-> activate_license_notice ();}, fifteen );

/**
* Get protected array products
*
* @return mixed array
*
* @since 1.0
* @author Andrea Grillo <[email protected]>
*/
public function get_products() {
return function_exists( 'YITH_Plugin_Licence' ) ? YITH_Plugin_Licence()->get_products() : array();
}
}
}

/**
* Main instance
*
* @return object
* @since 1.0
* @author Andrea Grillo <[email protected]>
*/
if ( !function_exists( 'YIT_Plugin_Licence' ) ) {
function YIT_Plugin_Licence() {
return YIT_Plugin_Licence::instance();
}
}

  • This reply was modified 5 years, 11 months ago by Rafal Kurka.
Search the Repository
We reward your Donations!
We need your Donation to maintain and grow the GPLDL WordPress Repository - and we reward your generosity with Premium Memberships allowing you to download even more files.

Learn more about donations & rewards...
News from our blog
  • What is the Battle Between WordPress’s Matt Mullenweg and WP Engine about?
    October 31, 2024
  • Why GPLDL Cannot Accept Your WordPress Plugin or Theme Submission
    February 20, 2024
  • How to Ensure Your WordPress Plugin or Theme is Authentic and Secure
    January 25, 2024
Latest Updates & Additions
  • GPLDL News: 108 Updates & Additions today – Download 2842 Premium WordPress items!
    May 2, 2025
  • GPLDL News: 176 Updates & Additions today – Download 2840 Premium WordPress items!
    April 27, 2025
  • GPLDL News: 88 Updates & Additions today – Download 2838 Premium WordPress items!
    April 21, 2025
Free Downloads?

Most of the WordPress Plugins & Themes in the GPLDL repository are available for free download - yes, free! - that is even better than buying at a discount, rebate, promotion or with a coupon code.

After signing up for a free membership, you will instantly get a download link to GPLDL's WordPress plugins and themes including future updates.

Where is the catch? There is none. We re-distribute 100% exact copies of GPL-licensedWordPress items, completely unmodified - that means *not* nulled, cracked or otherwise modified code without any serial numbers, API keys or support.

How can you help? If you like our service, please spread the word. If you can afford to financially support us, please make a donation. All donations will be used for (recurring) subscriptions of WordPress plugins & themes and to grow the catalog!

Tags
authenticity check code collaboration commercial copyleft Copyright developers distribution Download Extensions fork Free fsf functions.php GNU Public License GPL Guide HowTo Instructions Legal license malware Modify nulled open source Plugin Plugins Premium redistribution remove Rights secure Security serial Software software development Themes tutorial Update Website WooCommerce wordpress WordPress Plugins WordPress Themes
Welcome to GPLDL!
scr02We love innovation and we believe in free software!

That's why we strive to make the world's best Premium WordPress Themes & Plugins and WooCommerce Extensions & Themes available for everyone!

Find us on:

FacebookTwitterRssPinterestWebsite
Latest Blog Posts
  • What is the Battle Between WordPress’s Matt Mullenweg and WP Engine about?
    October 31, 2024
  • Why GPLDL Cannot Accept Your WordPress Plugin or Theme Submission
    February 20, 2024
  • How to Ensure Your WordPress Plugin or Theme is Authentic and Secure
    January 25, 2024
Latest Updates & Additions
  • GPLDL News: 108 Updates & Additions today – Download 2842 Premium WordPress items!
    May 2, 2025
  • GPLDL News: 176 Updates & Additions today – Download 2840 Premium WordPress items!
    April 27, 2025
  • GPLDL News: 88 Updates & Additions today – Download 2838 Premium WordPress items!
    April 21, 2025
About GPLDL
  • About GPLDL
  • Need Help?
  • F.A.Q.
  • Terms of Service
  • Privacy Policy
  • Contact
GPLDL - all Rights reserved.
  • About GPLDL
  • Need Help?
  • F.A.Q.
  • Terms of Service
  • Privacy Policy
  • Contact
  • Sign In
GPLDL Widget Menu