• 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

Target class controller does not exist - Laravel 8

How to disable widget block editor of WordPress?

Insert And Retrieve Data in MySQL with $.post Noob Question

How can I get user id from session in javascript?

WordPress ACFNotice: get_field() - We've detected one or more calls to retrieve ACF field values before ACF has been initialized

How to convert time from one timezone to another in PHP

Remove product downloads section in woocommerce email notifications

Read users and passwords from a txt file

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

How can I pass the list to the component variable in Laravel?

GuzzleHttp Hangs When Using Localhost

Sum array values of a column within each column of an array with 3 levels

How to update array value in Laravel

PHP error: "The zip extension and unzip command are both missing, skipping."

GRPC installed successfully on ubuntu but php is looking for it in another folder

About Contact Privacy policy Terms and conditions