-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisplay-reusable-blocks.php
More file actions
executable file
·48 lines (43 loc) · 1.23 KB
/
display-reusable-blocks.php
File metadata and controls
executable file
·48 lines (43 loc) · 1.23 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
<?php
/**
*
* @link https://homescriptone.com
* @since 1.0.0
* @package Display_Reusable_Blocks
*
* @wordpress-plugin
* Plugin Name: Display Reusable Blocks
* Plugin URI: https://homescriptone.com/plugins/display-reusable-blocks
* Description: A simple plugin displaying the Gutemberg Reusable blocks into the dashboard.
* Version: 1.0.0
* Author: HomeScript
* Author URI: https://homescriptone.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: display-reusable-blocks
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Currently plugin version.
* Start at version 1.0.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define( 'DISPLAY_REUSABLE_BLOCKS_VERSION', '1.0.0' );
add_action(
'init',
function() {
add_menu_page(
__( 'Reusable Blocks', 'display-reusable-blocks' ),
__( 'Reusable Blocks', 'display-reusable-blocks' ),
'manage_options',
'edit.php?post_type=wp_block',
false,
'dashicons-block-default',
22
);
}
);