-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
52 lines (45 loc) · 1.46 KB
/
Copy pathplugin.php
File metadata and controls
52 lines (45 loc) · 1.46 KB
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
<?php
/**
* Plugin Name: RDB Tabletop
* Description: BoardGameGeek data source for Remote Data Blocks.
* Plugin URI: https://github.com/s3rgiosan/rdb-tabletop
* Requires at least: 6.7
* Requires PHP: 8.2
* Requires Plugins: remote-data-blocks
* Version: 1.0.1
* Author: Sérgio Santos
* Author URI: https://s3rgiosan.dev/?utm_source=wp-plugins&utm_medium=rdb-tabletop&utm_campaign=author-uri
* License: GPL-3.0-or-later
* License URI: https://spdx.org/licenses/GPL-3.0-or-later.html
* Update URI: https://s3rgiosan.dev/
* GitHub Plugin URI: https://github.com/s3rgiosan/rdb-tabletop
* Text Domain: rdb-tabletop
*/
namespace S3S\WP\RdbTabletop;
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'S3S_RDB_TABLETOP_VERSION', '1.0.0' );
define( 'S3S_RDB_TABLETOP_PATH', plugin_dir_path( __FILE__ ) );
define( 'S3S_RDB_TABLETOP_URL', plugin_dir_url( __FILE__ ) );
define( 'S3S_RDB_TABLETOP_BASENAME', plugin_basename( __FILE__ ) );
if ( file_exists( S3S_RDB_TABLETOP_PATH . 'vendor/autoload.php' ) ) {
require_once S3S_RDB_TABLETOP_PATH . 'vendor/autoload.php';
}
PucFactory::buildUpdateChecker(
'https://github.com/s3rgiosan/rdb-tabletop/',
__FILE__,
'rdb-tabletop'
);
/**
* Load the plugin.
*/
add_action(
'plugins_loaded',
function () {
$plugin = Plugin::get_instance();
$plugin->setup();
}
);