-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblockwright-workbench.php
More file actions
35 lines (32 loc) · 1.32 KB
/
Copy pathblockwright-workbench.php
File metadata and controls
35 lines (32 loc) · 1.32 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
<?php
/**
* Plugin Name: Blockwright Workbench
* Description: One-click developer tools for block-theme work: bulk-reset Site Editor overrides, rescan theme patterns, flush every cache, clear all transients. Off by default outside development. Pairs with Create Block Theme.
* Version: 1.0.2
* Requires at least: 7.0
* Requires PHP: 7.4
* Author: Mark Russell
* Author URI: https://markrussell.io
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: blockwright-workbench
*
* @package Blockwright_Workbench
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! defined( 'BLOCKWRIGHT_WORKBENCH_VERSION' ) ) {
define( 'BLOCKWRIGHT_WORKBENCH_VERSION', '1.0.2' );
}
if ( ! defined( 'BLOCKWRIGHT_WORKBENCH_DIR' ) ) {
define( 'BLOCKWRIGHT_WORKBENCH_DIR', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'BLOCKWRIGHT_WORKBENCH_URL' ) ) {
define( 'BLOCKWRIGHT_WORKBENCH_URL', plugin_dir_url( __FILE__ ) );
}
// The workbench gates itself (inc/workbench.php is_active()): it surfaces only in
// a 'local'/'development' environment or when wp-config defines
// define( 'BLOCKWRIGHT_WORKBENCH', true ). On production with neither, nothing
// loads and no button shows.
require_once BLOCKWRIGHT_WORKBENCH_DIR . 'inc/workbench.php';