Plugin Directory

Changeset 2331253


Ignore:
Timestamp:
06/26/2020 01:37:35 PM (6 years ago)
Author:
wppluginexperts
Message:

Added a support with freemius

Location:
product-image-watermark-for-woo/trunk
Files:
219 added
2 edited

Legend:

Unmodified
Added
Removed
  • product-image-watermark-for-woo/trunk/product-image-watermark-for-woo.php

    r2322381 r2331253  
    44 * Plugin URI: https://wordpress.org/plugins/product-image-watermark-for-woo/
    55 * Description: Add Watermark to the images on Woocommerce Downloadable Products.
    6  * Version: 1.0.0
     6 * Version: 1.0.1
    77 * Author: WP Plugin Experts
    88 * Author URI: https://wppluginexperts.com/
     
    2020 */
    2121// Exit if accessed directly
    22 if (!defined('ABSPATH'))
    23     exit;
     22if( !defined('ABSPATH') ) exit;
     23
     24// Freemius SDK integration
     25if( ! function_exists('wpe_img_wtm_freemius') ) {
     26    // Create a helper function for easy SDK access.
     27    function wpe_img_wtm_freemius() {
     28        global $wpe_img_wtm_freemius;
     29
     30        if ( ! isset( $wpe_img_wtm_freemius ) ) {
     31            // Include Freemius SDK.
     32            require_once dirname(__FILE__) . '/freemius/start.php';
     33
     34            $wpe_img_wtm_freemius = fs_dynamic_init( array(
     35                'id'                => '6366',
     36                'slug'              => 'product-image-watermark-for-woo',
     37                'type'              => 'plugin',
     38                'public_key'        => 'pk_31f5f4b03c935615426965d36c8b9',
     39                'is_premium'        => false,
     40                'has_addons'        => false,
     41                'has_paid_plans'    => false,
     42                'menu'              => array(
     43                    'first-path'    => 'plugins.php',
     44                    'account'       => false,
     45                    'contact'       => false,
     46                    'support'       => false,
     47                ),
     48            ) );
     49        }
     50
     51        return $wpe_img_wtm_freemius;
     52    }
     53
     54    // Init Freemius.
     55    wpe_img_wtm_freemius();
     56
     57    // Signal that SDK was initiated.
     58    do_action( 'wpe_img_wtm_freemius_loaded' );
     59}
    2460
    2561if (!defined('WPE_IMG_WTM_VERSION')) {
    26     define('WPE_IMG_WTM_VERSION', '1.0.0'); // Plugin version
     62    define('WPE_IMG_WTM_VERSION', '1.0.1'); // Plugin version
    2763}
    2864if (!defined('WPE_IMG_WTM_URL')) {
  • product-image-watermark-for-woo/trunk/readme.txt

    r2322381 r2331253  
    44Requires at least: 5.0
    55Tested up to: 5.4.1
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151== Changelog ==
    5252
    53 = 1.0.0 =
     53= 1.0.1 - 2020-06-26 =
     54* Added a support with freemius.
     55
     56= 1.0.0 - 2020-06-11 =
    5457* Initial Release
Note: See TracChangeset for help on using the changeset viewer.