• 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

Multiply each value in array using array_map function

nginx err_connection_refused, can anyone help me?

How to install php_imagick on wamp64

PHPMetrics option --excluded-dirs="myfolder" : myfolder dir is not excluded within docker

Why does using salted hash on python and php give me different results?

Custom add to cart button URL for specific product in WooCommerce?

Two buttons one form

PHP7 CLI attempts to load xdebug twice - "Cannot load Xdebug - it was already loaded"

No result using makeStyles Material UI in react 18

Statement that checks whether a URL contains a particular path?

how to prevent float variables displaying as scientific notation when printing [duplicate]

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

Calculating Median of an array in PHP

500 Internal Server Error on Ajax request. Not sure the origin of the problem

generating a random code in php?

About Contact Privacy policy Terms and conditions