• 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

Dropdown with current value from Mysql

Using Associative arrays

XAMPP/SQLSRV: Unable to find Sqlsrv in PHPINFO(); - errors coming from connection

WooCommerce Additional Information - if empty, hide

How to write PHP in XSLT

How to get multiple values with same key from an array PHP

Get image type from base64 encoded src string

PHP random string generator

Star and Half Star Rating in Laravel

PHP -> Next nearest date defined by array of days in week

Log a user out of a website when they put their computer to sleep

PHP array, move keys and values to new array, but mix it up

Split array into 4-element chunks then implode into strings

How to test laravel controller method?

Update Total in checkout of Woocommerce with Ajax Request

About Contact Privacy policy Terms and conditions