Skip to content

Languages

3 gist results

@kimcoleman
kimcoleman / my_reusable_blocks_screen_add_column.php
Created July 18, 2022 20:23
Add a column to the Reusable Blocks screen to show the posts the block is used in.
<?php
/**
* Add column to show all posts a reusable block is used in.
*/
function my_reusable_blocks_screen_add_column( $columns ) {
$columns['posts_used_in'] = esc_html__( 'Used In', 'textdomain' );
return $columns;
}
add_filter( 'manage_wp_block_posts_columns', 'my_reusable_blocks_screen_add_column' );
<?php
/**
* Plugin Name: Reusable Block Count
* Description: Display a "Reusable blocks" listing page, and a link to view all posts containing a given block.
* Author: georgestephanis
* Author URI: http://wpspecialprojects.wordpress.com/
* License: GPLv2+
*
* Loosely based on https://github.com/yeswework/fabrica-reusable-block-instances/
@seebz
seebz / reusable-blocks-extended.php
Created September 27, 2021 13:49
Reusable Blocks Extended v0.7-patch
<?php
/**
* Plugin Name: Reusable Blocks Extended
* Plugin URI: https://jeanbaptisteaudras.com/en/2019/09/reusable-block-extended-a-cool-wordpress-plugin-to-extend-gutenberg-reusable-block-feature/
* Description: Extend Gutenberg Reusable Blocks feature with a complete admin panel, widgets, shortcodes and PHP functions.
* Version: 0.7-patch
* Author: audrasjb
* Author URI: https://jeanbaptisteaudras.com/en
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt