• 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

add_action() function in wordpress not working [duplicate]

Laravel Sanctum CSRF not authenticating

I want to display a sweetalert after the inserting of data in my database

Correct way to use LIKE '%{$var}%' with prepared statements?

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

Invalid value in field "itemtype" in Google Search Console

Get all WooCommerce products within own plugin

Store multiple fields in JSON column (Nova CMS)

How to create laravel storage symbolic link for production or sub domain system?

Custom add to cart button URL for specific product in WooCommerce?

PHPUnit gives error: Target [IlluminateContractsViewFactory] is not instantiable

Reload parent page after submit in iframe

Dynamic dropdown Ajax PHP request

How to add automatically collapse/expand in content wordpress (single.php)?

How to change HTML structure inside WP <head>

About Contact Privacy policy Terms and conditions