-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin-entry.php
executable file
·35 lines (30 loc) · 1.15 KB
/
plugin-entry.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
<?php
namespace BigupWeb\Reviews;
/**
* Plugin Name: Bigup Reviews
* Description: A custom 'Reviews' post type with custom meta fields.
* Requires at least: 6.0
* Requires PHP: 7.4
* Version: 0.1.2
* Author: Jefferson Real
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: bigup-reviews
*
* @package bigup-reviews
* @link https://kinsta.com/blog/dynamic-blocks/
* @link https://kinsta.com/blog/wordpress-add-meta-box-to-post/
* @link https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/creating-dynamic-blocks/
*/
$enable_debug = false;
// Define constants.
define( 'BIGUPREVIEWS_DEBUG', $enable_debug );
define( 'BIGUPREVIEWS_PATH', trailingslashit( __DIR__ ) );
define( 'BIGUPREVIEWS_URL', trailingslashit( get_site_url( null, strstr( __DIR__, '/wp-content/' ) ) ) );
// Register namespaced autoloader.
$namespace = 'BigupWeb\\Reviews\\';
$root = BIGUPREVIEWS_PATH . 'classes/';
require_once $root . 'autoload.php';
// Setup this plugin.
$Init = new Init();
$Init->setup();