-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.php
57 lines (49 loc) · 1.05 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* Plugin Name: Block Patterns Manager
* Plugin URI: https://derweili.de
* Description: Block Patterns Manager
* Author: TW Werbeagenten Heidelberg GmbH
* Author URI: https://derweili.de
* Text Domain: block-patterns-manager
* Domain Path: /languages
* Version: 0.1.0
*
* @package block-patterns-manager
*/
// Your code starts here.
namespace Derweili\BlockPatternsManager;
// Exit if accessed directly.
defined('ABSPATH') || exit;
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ){
require __DIR__ . '/vendor/autoload.php';
}
/**
* Gets this plugin's absolute directory path.
*
* @since 2.1.0
* @ignore
* @access private
*
* @return string
*/
function _get_plugin_directory() {
return __DIR__;
}
/**
* Gets this plugin's URL.
*
* @since 2.1.0
* @ignore
* @access private
*
* @return string
*/
function _get_plugin_url() {
static $plugin_url;
if ( empty( $plugin_url ) ) {
$plugin_url = plugins_url( null, __FILE__ );
}
return $plugin_url;
}
( new Plugin() )->run();