• Hi, we are loving this plugin, one thing though…

    The Getwid blocks already has this functionality in their plugin’s admin panel, and their UI has the boolean for ‘disable’ switched, which is confusing to our admins, not to mention having to enable/disable in two places.

    Does your plugin have a filter to allow us to exclude a certain block type group, like Getwid, please?


    Also, is there a better way to share the settings with our WPMS network sites (they are all using the same block settings) – right now I am using this custom code:

    
    function filter_gbm_disabled_blocks_option( $value, $option ) {
    
    	global $wpdb;
    	$main_site_id           = 1;
    	$main_site_prefix       = $wpdb->get_blog_prefix($main_site_id );
    	$main_site_option_value = $wpdb->get_var($wpdb->prepare("SELECT option_value FROM {$main_site_prefix}options WHERE option_name = %s", 'gbm_disabled_blocks' ) );
    	if ( $main_site_option_value !== null ) {
    		$main_site_option_value = maybe_unserialize($main_site_option_value );
    		return $main_site_option_value;
    
    	}
    }
    add_filter('pre_option_gbm_disabled_blocks', 'filter_gbm_disabled_blocks_option', 100, 2 );

    Thanks again for all your work on this!

  • The topic ‘Can I exclude Getwid blocks from the UI ?’ is closed to new replies.