• 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

Symfony process run throws exception - executing on command line works

PHP block shortcut in Visual Studio Code

Inserting Country Selection into MySQL PHP [duplicate]

How to change HTML structure inside WP <head>

Edit product hook WooCommerce

Hide email address with stars (*)

laravel automatically deletes server.php on php artisan serve

Dropdown with current value from Mysql

Undefined Array Key error when uploading image on php

Get number of working days between two dates in PHP [duplicate]

Laravel Blade checkbox not checked

500 Internal Server Error on Ajax request. Not sure the origin of the problem

Laravel Sanctum CSRF not authenticating

Undefined variable in Laravel 8 project (php 7.4)

PHP - installing Xdebug on Mac with XAMPP (Unix File)

About Contact Privacy policy Terms and conditions