wordpress-popular-posts
Last commit date
admin
8 years ago
includes
8 years ago
languages
8 years ago
public
8 years ago
index.php
8 years ago
readme.txt
8 years ago
uninstall.php
8 years ago
wordpress-popular-posts.php
8 years ago
wordpress-popular-posts.php
54 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * The plugin bootstrap file |
| 5 | * |
| 6 | * This file is read by WordPress to generate the plugin information in the plugin |
| 7 | * admin area. This file also includes all of the dependencies used by the plugin, |
| 8 | * registers the activation and deactivation functions, and defines a function |
| 9 | * that starts the plugin. |
| 10 | * |
| 11 | * @link http://cabrerahector.com/ |
| 12 | * @since 4.0.0 |
| 13 | * @package WordPressPopularPosts |
| 14 | * |
| 15 | * @wordpress-plugin |
| 16 | * Plugin Name: WordPress Popular Posts |
| 17 | * Plugin URI: https://wordpress.org/plugins/wordpress-popular-posts/ |
| 18 | * Description: A highly customizable widget that displays the most popular posts on your blog. |
| 19 | * Version: 4.0.0 |
| 20 | * Author: Hector Cabrera |
| 21 | * Author URI: http://cabrerahector.com/ |
| 22 | * License: GPL-2.0+ |
| 23 | * License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 24 | * Text Domain: wordpress-popular-posts |
| 25 | * Domain Path: /languages |
| 26 | */ |
| 27 | |
| 28 | if ( ! defined( 'WPINC' ) ) { |
| 29 | die(); |
| 30 | } |
| 31 | |
| 32 | /* |
| 33 | * The code that runs during plugin activation. |
| 34 | */ |
| 35 | require_once plugin_dir_path( __FILE__ ) . 'includes/class-wordpress-popular-posts-activator.php'; |
| 36 | register_activation_hook( __FILE__, array('WPP_Activator', 'activate') ); |
| 37 | |
| 38 | /* |
| 39 | * The code that runs during plugin activation. |
| 40 | */ |
| 41 | require_once plugin_dir_path( __FILE__ ) . 'includes/class-wordpress-popular-posts-deactivator.php'; |
| 42 | register_deactivation_hook( __FILE__, array('WPP_Deactivator', 'deactivate') ); |
| 43 | |
| 44 | /* |
| 45 | * The core plugins class. |
| 46 | */ |
| 47 | require plugin_dir_path( __FILE__ ) . 'includes/class-wordpress-popular-posts.php'; |
| 48 | |
| 49 | /* |
| 50 | * Begin execution of the plugin. |
| 51 | */ |
| 52 | $wordpress_popular_posts = new WordPressPopularPosts(); |
| 53 | $wordpress_popular_posts->run(); |
| 54 |