• 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

WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

RuntimeException: Unable to create the cache directory (/var/www/sonata/app/cache/dev)

Reorder attribute dropdown terms in Woocommerce single variable products

How to access a var with "-" in PHP [duplicate]

Parameter is not sent to Laravel route in Ajax

How to set dynamic `home` and `siteurl` in WordPress?

How to redirect to another page after n seconds in wordpress without using javascript?

SMTP "Error: DATA not accepted from server!" Opencart 2.3 on InMotionHosting

Elastic Beanstalk with Laravel Envoy

run a query using EXECUTE BLOCK to prepair a column for an unique-Index

WooCommerce Subscriptions: Remove role on cancelled subscription

Creating command to backup MySql database in Laravel

Unit (real unit test) of test laravel relationship

PHP how to detect if running on arm64 cpu?

Inserting Country Selection into MySQL PHP [duplicate]

About Contact Privacy policy Terms and conditions