Languages
3 gist results
3 gist results
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
<?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' ); |
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
<?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/ |
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
<?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 |