forked from cabrerahector/wordpress-popular-posts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwordpress-popular-posts.php
53 lines (47 loc) · 1.7 KB
/
wordpress-popular-posts.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
<?php
/**
* The plugin bootstrap file
*
* This file is read by WordPress to generate the plugin information in the plugin
* admin area. This file also includes all of the dependencies used by the plugin,
* registers the activation and deactivation functions, and defines a function
* that starts the plugin.
*
* @link http://cabrerahector.com/
* @since 4.0.0
* @package WordPressPopularPosts
*
* @wordpress-plugin
* Plugin Name: WordPress Popular Posts
* Plugin URI: https://wordpress.org/plugins/wordpress-popular-posts/
* Description: A highly customizable widget that displays the most popular posts on your blog.
* Version: 4.0.7
* Author: Hector Cabrera
* Author URI: http://cabrerahector.com/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: wordpress-popular-posts
* Domain Path: /languages
*/
if ( ! defined( 'WPINC' ) ) {
die();
}
/*
* The code that runs during plugin activation.
*/
require_once plugin_dir_path( __FILE__ ) . 'includes/class-wordpress-popular-posts-activator.php';
register_activation_hook( __FILE__, array('WPP_Activator', 'activate') );
/*
* The code that runs during plugin activation.
*/
require_once plugin_dir_path( __FILE__ ) . 'includes/class-wordpress-popular-posts-deactivator.php';
register_deactivation_hook( __FILE__, array('WPP_Deactivator', 'deactivate') );
/*
* The core plugins class.
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-wordpress-popular-posts.php';
/*
* Begin execution of the plugin.
*/
$wordpress_popular_posts = new WordPressPopularPosts();
$wordpress_popular_posts->run();