• 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 insert data from multiple select dropdown values into database?

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

Remove country code from phone number?

Laravel PackageManifest.php: Undefined index: name

PHP: Insert marker every 3 iterations

how to search for a file with php

How to keep value of selected value after form submission?

Wordpress add responsive srcset header image to theme

Backend cannot be reached after Typo3 login screen

How to add a heading in between checkout fields of WooCommerce

PHP: Print caught exception like Xdebug

Set quantity minimum, maximum and step at product level in Woocommerce

WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

WordPress Subquery returns more than 1 row on SELECT

PHP Fatal error: Class not found - PHPUnit

About Contact Privacy policy Terms and conditions