-
Notifications
You must be signed in to change notification settings - Fork 1
/
better-recent-comments.php
51 lines (45 loc) · 1.39 KB
/
better-recent-comments.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
<?php
/**
* The main plugin file for Better Recent Comments.
*
* @package Barn2\better-recent-comments
* @author Kestrel <[email protected]>
* @license GPL-3.0
* @copyright Kestrel
*
* @wordpress-plugin
* Plugin Name: Better Recent Comments
* Plugin URI: https://wordpress.org/plugins/better-recent-comments/
* Description: This plugin provides an improved widget and shortcode to show your most recent comments. If using WPML, comments are limited to posts in the current language.
* Version: 1.2.0
* Author: Kestrel
* Author URI: https://kestrelwp.com
* Text Domain: better-recent-comments
* Domain Path: /languages
* Requires at least: 6.0
* Tested up to: 6.6.1
* Requires PHP: 7.4
*
* Copyright: Kestrel
* License: GNU General Public License v3.0
* License URI: https://www.gnu.org/licenses/gpl.html
*/
namespace Barn2\Plugin\Better_Recent_Comments;
// Prevent direct file access
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
const PLUGIN_VERSION = '1.2.0';
const PLUGIN_FILE = __FILE__;
// Include autoloader.
require_once __DIR__ . '/vendor/autoload.php';
/**
* Helper function to access the shared plugin instance.
*
* @return Plugin The plugin instance.
*/
function better_recent_comments() {
return Plugin_Factory::create( PLUGIN_FILE, PLUGIN_VERSION );
}
// Load the plugin
better_recent_comments()->register();