• 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

how to validate form data in codeigniter 4

ORA-12546: TNS:permission denied error connection to remote oracle server

Laravel Unknown Column 'updated_at'

(Cache::lock()) -> get() -- Under what conditions does it return false?

Group rows by column and sum another column within groups [duplicate]

Display the WooCommerce product price inside a custom function

Woocommerce product attributes with hierarchy like categories

How to install ZeroMQ for PHP on an Alpine Linux container?

Phalcon: setStatusCode returns empty response

How to add a sidebar to Woocommerce Shop Page?

CSS file not imported in laravel blade view

MongoDB Duplicate Documents even after adding unique key

Add rows to Single product Additional information table in WooCommerce 3.6

How to implement placeholder in a php file for moodle plugin?

Not able to override collapsible.js in magento 2

About Contact Privacy policy Terms and conditions