• 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 product attributes with hierarchy like categories

Transfer data between JavaScript and PHP through JSON

add_action() function in wordpress not working [duplicate]

PHP DOTENV unable to load env vars

Woocommerce redirect after add-to-cart error

Trying to iterate over a mongodb cursor twice - failing

How to use PHPCBF to fix one issue at a time?

Get orders by date and status woocommerce

How to run or debug php on Visual Studio Code (VSCode)

Why is this PHP array not the same?

How can I get new CSRF token in LARAVEL by using ajax

How to Create WooCommerce Subscription Product via. REST API?

How to display table header in every page using FPDF library?

VB.NET WebRequest with PHP POST

How to debug in WooCommerce 3+

About Contact Privacy policy Terms and conditions