• 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

What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

Pass an image through AJAX [duplicate]

PHP: remove filename from path

PHP mail sending empty mails

MySQL/PHP - Web Based Game -User specific inventory table or 1 giant table? Another option?

How to change product Image when variables are selected in Shop and Archive Pages?

Unable to match results of php hash_hmac() and coldfusion hmac()

array_map triple dimensional array [duplicate]

How to Generate PDF invoice to XML format using mPDF

Calculating Median of an array in PHP

Split a string array into pieces

generate an Excel file using PHP

Undefined variable in Laravel 8 project (php 7.4)

Log a user out of a website when they put their computer to sleep

Navigation idle on content download

About Contact Privacy policy Terms and conditions