• 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

WooCommerce: Add/display Product or Variation custom field everywhere

wordpress : How to specify the cause "This site can’t be reached"

How to change the app environment at run time?

Autoloading classes in PHPUnit using Composer and autoload.php

Get all WooCommerce products within own plugin

wordpress : How to specify the cause "This site can’t be reached"

Laravel excel maatwebsite 3.1 import, date column in excel cell returns as unknown format number. How to solve this?

Add customer email and phone in "Order" column to admin orders list on Woocommerce

PHP to search within txt file and echo the whole line

How to debug in WooCommerce 3+

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

How to auto populate preferredCountries from intl-tel-input with db output

How to get variable from JavaScript to PHP [duplicate]

merging two arrays with specified index

Why does codeigniter & Linux server throws unserialize() session data error when user tries to login

About Contact Privacy policy Terms and conditions