• 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

hidden INPUT value not available in $_POST

MySQL upgrade causing unexpected results on simple WHERE clauses

Detect if PHP session exists

Insert a DIV after the 6th product only once in WooCommerce category archives

PHP usort() order in case of equality

Pagekite error: FAIL: localhost:8080 is down

How can I create a Download Page with post php method?

Manage independently the decimal number of the price of each product [duplicate]

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

renameColumn migration fails for existing column with columns does not exist error

Warning file_get_contents () failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required

find in set in laravel ? example

array_map triple dimensional array [duplicate]

Laravel s3 upload file with metadata using pre-signed url

Don't show recurring price for WooCommerce subscriptions worth 0$

About Contact Privacy policy Terms and conditions