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 <andrea.grillo@yithemes.com>
*/
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 <andrea.grillo@yithemes.com>
*/
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 <andrea.grillo@yithemes.com>
*/
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 <andrea.grillo@yithemes.com>
*/
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
}

return self::$_instance;
}

/**
* Get license activation URL
*
* @author Andrea Grillo <andrea.grillo@yithemes.com>
* @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 <andrea.grillo@yithemes.com>
*/
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 <andrea.grillo@yithemes.com>
*/
if ( !function_exists( 'YIT_Plugin_Licence' ) ) {
function YIT_Plugin_Licence() {
return YIT_Plugin_Licence::instance();
}
}

  • This reply was modified 4 years, 6 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
  • Some common use cases for the Gravity Forms WordPress Plugin
    December 19, 2022
  • How to write your own WordPress Theme from scratch?
    December 19, 2022
  • How to create a Child Theme for your WordPress Theme?
    December 19, 2022
Latest Updates & Additions
  • GPLDL News: 123 Updates & Additions today – Download 2513 Premium WordPress items!
    December 3, 2023
  • GPLDL News: 81 Updates & Additions today – Download 2511 Premium WordPress items!
    November 26, 2023
  • GPLDL News: 207 Updates & Additions today – Download 2508 Premium WordPress items!
    November 19, 2023
Tags
check code Copyright distribution Download Drupal fork forked fsf FTP functions.php GNU Public License GPL Guide HowTo Instructions Legal license Magento manually nulled PHP Plugin Plugins Premium redistribution remove Rights Search Engine Optimization secure SEO serial step by step style.css Themes true tutorial Update usage Website WooCommerce wordpress WordPress Plugins WordPress Theme 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
  • Some common use cases for the Gravity Forms WordPress Plugin
    December 19, 2022
  • How to write your own WordPress Theme from scratch?
    December 19, 2022
  • How to create a Child Theme for your WordPress Theme?
    December 19, 2022
Latest Updates & Additions
  • GPLDL News: 123 Updates & Additions today – Download 2513 Premium WordPress items!
    December 3, 2023
  • GPLDL News: 81 Updates & Additions today – Download 2511 Premium WordPress items!
    November 26, 2023
  • GPLDL News: 207 Updates & Additions today – Download 2508 Premium WordPress items!
    November 19, 2023
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