• 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 Fatal error: Class not found - PHPUnit

Best way to scrolldown onpageload

How can I make this nested location configuration use the correct path to call a php program?

Display a success custom notice after Placing an Order in WooCommerce

Pass an image through AJAX [duplicate]

IlluminateDatabaseQueryException could not find driver [duplicate]

How to add class name to an existing tag in php

Get all WooCommerce products within own plugin

WooCommerce - unset "<product> removed notice…" on cart page

Symfony - "framework.test" config is not set to true

OAuth2 Token PHP

how to use extended ASCII instead of unicode in PHP

how do i retrieve and display the alt text of an image in wordpress?

Make Shipping Method fields Mandatory on Woocommerce checkout page

Cannot pass null argument when using type hinting

About Contact Privacy policy Terms and conditions