• 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

No definition found for function in vendor vscode

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

Get sum of arrays inside array

Laravel Gates using model and returns "Using $this when not in object context" Line 28 of AzureUser model

Results page in other window

Uncaught TypeError: Cannot read property 'length' of null when retrieving tags from wp

Adding hreflang tags automatically in WordPress subdirectory multisite

Laravel: Why is my variable not being set while it's in the construct function of the controller?

Python - Include another Python script

PHP array stringify

Don't show recurring price for WooCommerce subscriptions worth 0$

Auto increment id JSON

Override default Auth routes in Laravel 7

How to submit the custom form data in database in WordPress without plugin using ajax?

How to execute sql code based on fetch array

About Contact Privacy policy Terms and conditions