• 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 KeyBy where multiple items have the same key

PHPExcel file download using AJAX call

get folder directory from input type file - PHP

How to add automatically collapse/expand in content wordpress (single.php)?

Additional price based on cart item count in WooCommerce

Smarty if isset

Laravel set default language not working

Override default Auth routes in Laravel 7

Unable to uninstall brew php from homebrew

HTML and PHP in one file

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

No definition found for function in vendor vscode

Yii Ajax Submit button

Get lat/lon from google maps url ftid (hex)

500 (Internal Server Error) with Laravel & Docker [duplicate]

About Contact Privacy policy Terms and conditions