embedpress
Last commit date
EmbedPress
9 years ago
assets
9 years ago
freemius
9 years ago
library
9 years ago
autoloader.php
9 years ago
changelog.txt
9 years ago
embedpress.php
9 years ago
freemius.php
9 years ago
includes.php
9 years ago
index.html
9 years ago
providers.php
9 years ago
readme.txt
9 years ago
freemius.php
41 lines
| 1 | <?php |
| 2 | defined('ABSPATH') or die("No direct script access allowed."); |
| 3 | |
| 4 | /** |
| 5 | * @package EmbedPress |
| 6 | * @author PressShack <help@pressshack.com> |
| 7 | * @copyright Copyright (C) 2017 Open Source Training, LLC. All rights reserved. |
| 8 | * @license GPLv2 or later |
| 9 | * @since 1.7.0 |
| 10 | */ |
| 11 | |
| 12 | // Create a helper function for easy SDK access. |
| 13 | function ep_fs() { |
| 14 | global $ep_fs; |
| 15 | |
| 16 | if ( ! isset( $ep_fs ) ) { |
| 17 | // Include Freemius SDK. |
| 18 | require_once dirname(__FILE__) . '/freemius/start.php'; |
| 19 | |
| 20 | $ep_fs = fs_dynamic_init( array( |
| 21 | 'id' => '949', |
| 22 | 'slug' => 'embedpress', |
| 23 | 'type' => 'plugin', |
| 24 | 'public_key' => 'pk_238342b79c9d480864db8f8a5c54b', |
| 25 | 'is_premium' => false, |
| 26 | 'has_addons' => false, |
| 27 | 'has_paid_plans' => false, |
| 28 | 'menu' => array( |
| 29 | 'slug' => 'embedpress', |
| 30 | 'support' => false, |
| 31 | ), |
| 32 | ) ); |
| 33 | } |
| 34 | |
| 35 | return $ep_fs; |
| 36 | } |
| 37 | |
| 38 | // Init Freemius. |
| 39 | ep_fs(); |
| 40 | // Signal that SDK was initiated. |
| 41 | do_action( 'ep_fs_loaded' ); |