-
Notifications
You must be signed in to change notification settings - Fork 0
/
managed-posts-rating-like-button.php
40 lines (33 loc) · 1.13 KB
/
managed-posts-rating-like-button.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
<?php
/**
* Plugin Name: Managed posts rating ★ Like button
* Description: Rating system for your WordPress site with a simple "like" button and advanced admin panel.
* Version: 2.0.1
* Author: Daria Levchenko
* Author URI: https://github.com/levenyatko
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: mpr-likebtn
* Domain Path: /languages
* Tested up to: 6.4.1
* Requires PHP: 7.2
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! defined( 'MPR_PLUGIN_FILE' ) ) {
define( 'MPR_PLUGIN_FILE', __FILE__ );
}
if ( ! defined( 'MPR_PLUGIN_DIR' ) ) {
define('MPR_PLUGIN_DIR', plugin_dir_path(__FILE__));
}
if ( ! defined( 'MPR_PLUGIN_URL' ) ) {
define('MPR_PLUGIN_URL', plugin_dir_url(__FILE__));
}
require_once MPR_PLUGIN_DIR . 'includes/autoload.php';
require_once MPR_PLUGIN_DIR . 'includes/functions.php';
function MPR_Like_Btn()
{
return MPRating\Plugin::instance();
}
MPR_Like_Btn();