• 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

Download & Save Zoom Recording in directory by PHP

Getting public posts of a random user from Facebook API

Warning: sqlite_query() expects parameter 1 to be resource, string given

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

SilverStripe unable to populate multiple member Childs

Nginx RTMP not recording

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

How to find the date a user created their Google account

PHP DOTENV unable to load env vars

How can I make a full text index of the column?

how to use extended ASCII instead of unicode in PHP

laravel MVC execution flow

Fatal error: Uncaught Error: Call to undefined method mysqli_stmt::fetch_assoc() [duplicate]

How to get rid of ampersand using WP Nonce URL and WP Redirect or PHP header

How to skip cart page on woocomerce for certain products only?

About Contact Privacy policy Terms and conditions