• 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

Laravel php artisan serve to mimic HTTPS

PHP contact form configuration [duplicate]

possible options to create pdf file using html elements to generate invoice in php and codeigniter

Update Order custom Field value with WooCommerce REST API

PHP: Print caught exception like Xdebug

Apply filter array/return terms

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

Clients authentication and user authentication with laravel

Last order would be re-order in wooCommerce. How is it possible?

Dynamic table in HTML using MySQL and php

Declaration of OMDb::query(string $statement) must be compatible with PDO::query

Attempted to call an undefined method named "get" of class "MailController"

WAMP Virtual Host not working

Login if user is active using Laravel Breeze

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

About Contact Privacy policy Terms and conditions