-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwpz-menu-blocks.php
More file actions
66 lines (59 loc) · 1.5 KB
/
Copy pathwpz-menu-blocks.php
File metadata and controls
66 lines (59 loc) · 1.5 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* Plugin Name: WPZ Menu Blocks
* Plugin URI: https://github.com/wpzoomup/wpz-menu-blocks
* Description: 最新のお品書きを表示
* Author: wpzoomup
* Author URI: https://wpzoomup.com
* Text Domain: wpz-menu-blocks
* Version: 0.0.1
*
* @package WPZ_menu_Blocks
*/
namespace WPZ_menu_Blocks;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
const PLUGIN_FILE = __FILE__;
const SCRIPT_HANDLE = 'wpz-menu-blocks';
/**
* Get plugin information.
*
* @return array {
* Array of plugin information for the strings.
*
* @type string $Name Plugin mame.
* @type string $PluginURI Plugin URL.
* @type string $Version Version.
* @type string $Description Description.
* @type string $Author Author name.
* @type string $AuthorURI Author URL.
* @type string $TextDomain textdomain.
* @type string $DomainPath mo file dir.
* @type string $Network Multisite.
* }
*/
function get_plugin_data() {
static $data = null;
if ( empty( $data ) ) {
$data = \get_file_data(
__FILE__,
[
'Name' => 'Plugin Name',
'PluginURI' => 'Plugin URI',
'Version' => 'Version',
'Description' => 'Description',
'Author' => 'Author',
'AuthorURI' => 'Author URI',
'TextDomain' => 'Text Domain',
'DomainPath' => 'Domain Path',
'Network' => 'Network',
]
);
}
return $data;
}
/**
* Block Initializer.
*/
require_once dirname( __FILE__ ) . '/src/init.php';