• 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

Yii2: How to download backup files using spanjeta/yii2-backup?

What will the best solution for this multiple optional filter?

possible options to create pdf file using html elements to generate invoice in php and codeigniter

How can I make Laravel return a custom error for a JSON REST API

Make Calculator - When Button clicked the No shows in Textbox.

Additional price based on cart item count in WooCommerce

Remove product downloads section in woocommerce email notifications

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

Laravel Blade checkbox not checked

WordPress Security Standards want me to escape my html, but how to do it correctly?

Alert message after submitting form in PHP

php - add comma thousands separator but remove trailing zeros

Can we define variables in `.tpl` files?

send email using gmail-api and google-api-php-client

Phpunit partial mock + proxy Entity

About Contact Privacy policy Terms and conditions