-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.php
40 lines (33 loc) · 1.31 KB
/
plugin.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
<?php
/**
* Plugin Name: Latest Comments Extended
* Description: Extends the Latest Comments block with additional features.
* Plugin URI: https://github.com/s3rgiosan/latest-comments-extended
* Requires at least: 6.4
* Requires PHP: 7.4
* Version: 1.2.2
* Author: Sérgio Santos
* Author URI: https://s3rgiosan.dev/?utm_source=wp-plugins&utm_medium=latest-comments-extended&utm_campaign=author-uri
* License: GPL-3.0-or-later
* License URI: https://spdx.org/licenses/GPL-3.0-or-later.html
* Text Domain: latest-comments-extended
*
* @package LatestCommentsExtended
*/
namespace S3S\WP\LatestCommentsExtended;
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'S3S_LATEST_COMMENTS_EXTENDED_PATH', plugin_dir_path( __FILE__ ) );
define( 'S3S_LATEST_COMMENTS_EXTENDED_URL', plugin_dir_url( __FILE__ ) );
if ( file_exists( S3S_LATEST_COMMENTS_EXTENDED_PATH . 'vendor/autoload.php' ) ) {
require_once S3S_LATEST_COMMENTS_EXTENDED_PATH . 'vendor/autoload.php';
}
PucFactory::buildUpdateChecker(
'https://github.com/s3rgiosan/latest-comments-extended/',
__FILE__,
'latest-comments-extended'
)->setBranch( 'main' );
( Plugin::get_instance() )->setup();