• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

How can I remove the "Advanced" panel of all blocks in WordPress block editor?

javascriptphpwordpresswordpress-gutenberggutenberg-blocks


PHP Snippet 1:

add_filter( 'block_type_metadata', 'remove_the_class_anchor' );
function remove_the_class_anchor($metadata ) {
    $metadata['supports']['customClassName'] = false;
    $metadata['supports']['anchor'] = false;
    return $metadata;
}

Related Snippets

Get all WooCommerce products within own plugin

java URL working on browser but not in client program

Update Order custom Field value with WooCommerce REST API

How to add a heading in between checkout fields of WooCommerce

Woocommerce product attributes with hierarchy like categories

Explode not working properly with dash

Laravel multi auth - Authentication user provider [] is not defined

woocommerce change position of price

Pass an image through AJAX [duplicate]

Composer Script echo

TesseractOCR not working for Laravel

Can I write PHP code across multiple lines per statement?

How update php.ini on a Mac OS X Mojave?

Wordpress 'post_type_link' hides permalink

Show only featured products in Woocommerce shop page

About Contact Privacy policy Terms and conditions