-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathadvanced-posts-blocks.php
68 lines (62 loc) · 1.62 KB
/
advanced-posts-blocks.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
58
59
60
61
62
63
64
65
66
67
68
<?php
/**
* Plugin Name: Advanced Posts Blocks
* Plugin URI: https://github.com/torounit/advanced-posts-blocks
* Description: Customizable posts blocks.
* Author: Toro_Unit
* Author URI: https://torounit.com
* Text Domain: advanced-posts-blocks
* Domain Path: /languages
* Version: 5.2.0
* Requires at least: 6.1
* Requires PHP: 7.4
*
* @package Advanced_Posts_Blocks
*/
namespace Advanced_Posts_Blocks;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
const PLUGIN_FILE = __FILE__;
const SCRIPT_HANDLE = 'advanced-posts-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__,
array(
'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';