-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplugin.php
More file actions
33 lines (29 loc) · 709 Bytes
/
plugin.php
File metadata and controls
33 lines (29 loc) · 709 Bytes
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
<?php
/**
* Plugin Name: GutenTweaks
* Plugin URI: https://github.com/log1x/gutentweaks
* Description: A plugin containing a few Gutenberg tweaks.
* Version: 1.1.5
* Author: Brandon Nifong
* Author URI: https://github.com/log1x
* Licence: MIT
*/
namespace Log1x\GutenTweaks;
add_action('plugins_loaded', new class
{
/**
* Invoke the plugin.
*
* @return void
*/
public function __invoke()
{
if (file_exists($composer = __DIR__.'/vendor/autoload.php')) {
require_once $composer;
}
GutenTweaks::make(
path: plugin_dir_path(__FILE__),
uri: plugin_dir_url(__FILE__)
)->boot();
}
});