-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Plugin to add the Reusable Blocks as Menu
- Loading branch information
0 parents
commit 66aa215
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Default ignored files | ||
/shelf/ | ||
/.idea/workspace.xml | ||
# Editor-based HTTP Client requests | ||
/httpRequests/ | ||
# Datasource local storage ignored files | ||
/dataSources/ | ||
/dataSources.local.xml | ||
# IntelliJ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/** | ||
* Plugin Name: CasualBen Reusable Blocks Menu | ||
* Plugin URI: https://github.com/DasBen/CasualBen-Reusable-Blocks-Menu | ||
* Description: Adds a Menu Item for the Reusable Blocks | ||
* Version: 1.0.0 | ||
* Author: Benjamin Pahl - CasualBen | ||
* Author URI: https://www.casual-ben.com | ||
* | ||
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU | ||
* General Public License version 2, as published by the Free Software Foundation. You may NOT assume | ||
* that you can use any other version of the GPL. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without | ||
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
*/ | ||
|
||
function casualben_reusable_blocks_menu() { | ||
add_menu_page( 'Reusable Blocks', 'Reusable Blocks', 'edit_posts', 'edit.php?post_type=wp_block', '', 'dashicons-text-page', 6 ); | ||
} | ||
add_action( 'admin_menu', 'casualben_reusable_blocks_menu' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# CasualBen Reusable Blocks Menu | ||
|
||
Simply adds a Menu to access the Reusable Blocks which are normally hidden. | ||
|
||
# What is a reusable block? | ||
A reusable block is a custom block which can be used to display recurring content. | ||
Like a social link box, ads or lists. You can put whatever you want in these. |