-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopular-authors.php
81 lines (72 loc) · 2 KB
/
popular-authors.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
80
81
<?php
/**
* Popular Authors.
*
* Display a list of the popular authors. A Top 10 WordPress plugin addon.
*
* @package Popular_Authors
* @author Ajay D'Souza
* @license GPL-2.0+
* @link https://webberzone.com
* @copyright 2020-2025 WebberZone
*
* @wordpress-plugin
* Plugin Name: Popular Authors
* Plugin URI: https://webberzone.com/downlods/popular-authors/
* Description: Display a list of the popular authors. A Top 10 WordPress plugin addon.
* Version: 1.3.0
* Author: WebberZone
* Author URI: https://webberzone.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: popular-authors
* Domain Path: /languages
* Requires Plugins: top-10
*/
namespace WebberZone\Popular_Authors;
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Popular Authors Plugin Version
*
* @since 1.1.0
*/
if ( ! defined( 'POP_AUTHOR_VERSION' ) ) {
define( 'POP_AUTHOR_VERSION', '1.3.0' );
}
/**
* Holds the filesystem directory path (with trailing slash) for Popular Authors
*
* @since 1.1.0
*/
if ( ! defined( 'POP_AUTHOR_PLUGIN_DIR' ) ) {
define( 'POP_AUTHOR_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
}
/**
* Holds the filesystem directory path (with trailing slash) for Popular Authors
*
* @since 1.1.0
*/
if ( ! defined( 'POP_AUTHOR_PLUGIN_URL' ) ) {
define( 'POP_AUTHOR_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
}
/**
* Holds the filesystem directory path (with trailing slash) for Popular Authors
*
* @since 1.1.0
*/
if ( ! defined( 'POP_AUTHOR_PLUGIN_FILE' ) ) {
define( 'POP_AUTHOR_PLUGIN_FILE', __FILE__ );
}
// Load the autoloader.
require_once POP_AUTHOR_PLUGIN_DIR . 'includes/autoloader.php';
/**
* The main function responsible for returning the one true WebberZone Snippetz instance to functions everywhere.
*/
function load_wzpa() {
\WebberZone\Popular_Authors\Main::get_instance();
}
add_action( 'plugins_loaded', __NAMESPACE__ . '\load_wzpa' );
// Load internal files.
require_once POP_AUTHOR_PLUGIN_DIR . 'includes/functions.php';