• 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 modify CSS in a specific page of the WP admin dashboard (backend)

I'm trying to write a clean url for my website using the $_SERVER['REQUEST_URI'] in php

Add customer email and phone in "Order" column to admin orders list on Woocommerce

Why does array_map() with null as callback create an "array of arrays"?

php script to delete files older than 24 hrs, deletes all files

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

Change user role if checkout custom checkbox is checked in WooCommerce

How to send parameters in soap request in php in __soapcall() function

Laravel websockets AWS EC2 - Connection failed

jQuery Ajax Post with data

Woocommerce Checkout - Add conditional field required if one field is filled

Add restriction to WooCommerce coupons by allowed user ID

Get Header Authorization value of a login api (sent with username and password in json body) using php curl

How to reset Laravel AuthManager/guards in between API calls in tests?

WordPress Security Standards want me to escape my html, but how to do it correctly?

About Contact Privacy policy Terms and conditions