-
Notifications
You must be signed in to change notification settings - Fork 2
/
really-simple-featured-video.php
79 lines (69 loc) · 2 KB
/
really-simple-featured-video.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/**
* Plugin Name: Really Simple Featured Video
* Plugin URI: https://jetixwp.com/plugins/really-simple-featured-video
* Description: Adds support for Featured Video to WordPress posts, pages & WooCommerce products.
* Version: 0.17.0
* Author: JetixWP Plugins
* Author URI: https://jetixwp.com
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: rsfv
* Domain Path: /languages/
*
* @package RSFV
*/
defined( 'ABSPATH' ) || exit;
define( 'RSFV_VERSION', '0.17.0' );
define( 'RSFV_PLUGIN_FILE', __FILE__ );
define( 'RSFV_PLUGIN_URL', plugin_dir_url( RSFV_PLUGIN_FILE ) );
define( 'RSFV_PLUGIN_DIR', plugin_dir_path( RSFV_PLUGIN_FILE ) );
define( 'RSFV_PLUGIN_BASE', plugin_basename( RSFV_PLUGIN_FILE ) );
define( 'RSFV_PLUGIN_PRO_URL', 'https://jetixwp.com/plugins/really-simple-featured-video' );
if ( ! function_exists( 'rsfv_fs' ) ) {
/**
* Create a helper function for easy SDK access.
*/
function rsfv_fs() {
global $rsfv_fs;
if ( ! isset( $rsfv_fs ) ) {
// Include Freemius SDK.
require_once __DIR__ . '/freemius/start.php';
$rsfv_fs = fs_dynamic_init(
array(
'id' => '7560',
'slug' => 'really-simple-featured-video',
'type' => 'plugin',
'public_key' => 'pk_6d1ecdde5701fc2158193cf7eab45',
'is_premium' => false,
'has_addons' => true,
'has_paid_plans' => false,
'menu' => array(
'slug' => 'rsfv-settings',
'first-path' => 'options-general.php?page=rsfv-settings',
'support' => false,
'parent' => array(
'slug' => 'options-general.php',
),
),
)
);
}
return $rsfv_fs;
}
// Init Freemius.
rsfv_fs();
// Signal that SDK was initiated.
do_action( 'rsfv_fs_loaded' );
}
/**
* Fire up plugin instance.
*/
add_action(
'plugins_loaded',
static function () {
require_once RSFV_PLUGIN_DIR . 'includes/class-plugin.php';
// Main instance.
\RSFV\Plugin::get_instance();
}
);