Skip to content

Commit

Permalink
New Plugin to add the Reusable Blocks as Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
DasBen committed Mar 13, 2022
0 parents commit 66aa215
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
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
23 changes: 23 additions & 0 deletions Casual-ben-reusable-blocks-menu.php
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' );
7 changes: 7 additions & 0 deletions README.md
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.

0 comments on commit 66aa215

Please sign in to comment.