• 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

enable Apache http Authorization header

Webscraping Symfony/Panther: Can't get HTML

How to make a array inside array?

calling server using nusoap with complextype

Combine array with same value and add other [duplicate]

Group data in a multidimensional array based on two columns

php echo xml documents with header

Check If array is null or not in php

jQuery Ajax Post with data

oauth-private.key does not exist or is not readable

Warning: A non-numeric value encountered

Put content of wordpress page inside div

OctoberCMS / Anonymous Global Scope

Converting array to string and then back in PHP

Submitting a form with ajax in Wordpress

About Contact Privacy policy Terms and conditions