• 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

Toggle between a textbox and a select using PHP

How to find phpcs current default standard

codeigniter 4 running error first time with xampp

Converting array to string and then back in PHP

Populate Dynamic Dropdowns List in Codeigniter

Split array into 4-element chunks then implode into strings

Unit (real unit test) of test laravel relationship

Eloquent insert id with sequence next value

Uploading video to Youtube using Youtube Data API V3 and Google API Client PHP -- getting 401 (unauthorized) message

Is there a way to use Foundry Model for Authentification inside Functional Tests?

Laravel : How to Create Dropdown to Select FOREIGN KEY from Other Table?

php echo remove slashes from url [duplicate]

Is it possible to change the table name in the migration file-laravel

Autoloading classes in PHPUnit using Composer and autoload.php

How to average columns of data from multiple, flat arrays?

About Contact Privacy policy Terms and conditions