• 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

PHP: PDO + CSV export not downloading (headers issue?)

xdebug 3 not working in ubuntu 20.04 with docker

Wordpress add responsive srcset header image to theme

Best way to scrolldown onpageload

How do I get friend list from Friends table with counts of friends of my friends

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

how to display a view on laravel 8 and not have a 404 NOT FOUND page?

html-php form submission after validation through JavaScript [closed]

Laravel 5.2: Unable to locate factory with name [default]

Form repeater send wrong data with last element in Laravel

Display a success custom notice after Placing an Order in WooCommerce

could not find driver Debian SQL Server PHP

How to modify CSS in a specific page of the WP admin dashboard (backend)

Changing font color in javascript

AJAX call fails with SyntaxError: Unexpected end of JSON input

About Contact Privacy policy Terms and conditions