• 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 change product Image when variables are selected in Shop and Archive Pages?

zsh: command not found: php

Laravel s3 upload file with metadata using pre-signed url

Merge key and value of array index [duplicate]

Magento 2 - Controller returning blank page

Insert database rows from columns of data from associative array of indexed arrays

how to insert data into select2 search input after scan using qrcode

Edit product hook WooCommerce

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

Codeigniter, Severity: error --> Exception: Too few arguments to function, admin dashboard shows HTTP error 500

Download & Save Zoom Recording in directory by PHP

PHPS source file - 403 Forbidden You don't have permission to access this resource

Adding hreflang tags automatically in WordPress subdirectory multisite

Make survey at laravel 5.4 and MySQL

Remove "estimated for {country}" text after tax amount in Woocommerce checkout page

About Contact Privacy policy Terms and conditions