• 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 get the survey List from surveygizmo API in the Postman?(Trial Version)

wordpress function breaks wp-admin

User pool client {id}does not exist

Laravel PackageManifest.php: Undefined index: name

Remove product downloads section in woocommerce email notifications

jQuery Ajax Post with data

Show only featured products in Woocommerce shop page

Google API Heatmap Layer exception, why?

Get lat/lon from google maps url ftid (hex)

Undefined Array Key error when uploading image on php

Call authenticate manually in router middleware

Filter WooCommerce products with post__in and additional meta queries

Results page in other window

Laravel s3 upload file with metadata using pre-signed url

Zig-zag scan an N x N array

About Contact Privacy policy Terms and conditions