PluginProbe ʕ •ᴥ•ʔ
WP Popular Posts / 4.2.0
WP Popular Posts v4.2.0
4.0.8 4.0.9 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 5.0.0 5.0.1 5.0.2 5.1.0 5.2.0 5.2.1 5.2.2 5.2.3 5.2.4 5.3.0 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.4.0 5.4.1 5.4.2 5.5.0 5.5.1 6.0.0 6.0.1 6.0.2 6.0.3 6.0.4 6.0.5 6.1.0 6.1.1 6.1.2 6.1.3 6.1.4 6.2.0 6.2.1 6.3.0 6.3.1 6.3.2 6.3.3 6.3.4 6.4.0 6.4.1 6.4.2 7.0.0 7.0.1 7.1.0 7.2.0 7.3.0 7.3.1 7.3.2 7.3.3 7.3.4 7.3.5 7.3.6 7.3.7 7.3.8 7.4.0 trunk 2.3.7 3.0.0 3.0.1 3.0.2 3.0.3 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 4.0.0 4.0.1 4.0.10 4.0.11 4.0.12 4.0.13 4.0.2 4.0.3 4.0.5 4.0.6
wordpress-popular-posts / wordpress-popular-posts.php
wordpress-popular-posts Last commit date
admin 7 years ago includes 7 years ago languages 7 years ago public 7 years ago index.php 7 years ago readme.txt 7 years ago uninstall.php 7 years ago wordpress-popular-posts.php 7 years ago
wordpress-popular-posts.php
68 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 https://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.2.0
20 * Author: Hector Cabrera
21 * Author URI: https://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 define( 'WPP_VER', '4.2.0' );
33
34 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wordpress-popular-posts-admin-notices.php';
35 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wordpress-popular-posts-activator.php';
36
37 // Can we run?
38 if ( $errors = WPP_Activator::check_requirements() ) {
39 if ( isset($_GET['activate']) ) unset($_GET['activate']);
40
41 // Display error message(s)
42 new WPP_Message( $errors, 'notice-error' );
43 // We're done here
44 return;
45 }
46
47 /*
48 * The code that runs during plugin activation.
49 */
50 register_activation_hook( __FILE__, array('WPP_Activator', 'activate') );
51
52 /*
53 * The code that runs during plugin activation.
54 */
55 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wordpress-popular-posts-deactivator.php';
56 register_deactivation_hook( __FILE__, array('WPP_Deactivator', 'deactivate') );
57
58 /*
59 * The core plugins class.
60 */
61 require plugin_dir_path( __FILE__ ) . 'includes/class-wordpress-popular-posts.php';
62
63 /*
64 * Begin execution of the plugin.
65 */
66 $wordpress_popular_posts = new WordPressPopularPosts();
67 $wordpress_popular_posts->run();
68