• 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

correct PHP headers for pdf file download

virtctl works when executed via command line but not from php exec()

how to sort by a custom appended relation to model

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

Can we define variables in `.tpl` files?

How to assert parameter attribute sub-structures in PHPUnit mock call expectations

Make Shipping Method fields Mandatory on Woocommerce checkout page

Reorder attribute dropdown terms in Woocommerce single variable products

How to use React Router with Laravel?

Wordpress add responsive srcset header image to theme

dockerizing Laravel + vue

How to write PHP in XSLT

Show date difference as "20" instead of "20 years ago"

How to install LDAP in Docker php-fpm alpine

Laravel set default language not working

About Contact Privacy policy Terms and conditions