• 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

Substitute integers and dots with regex [duplicate]

Testing subscription renewals on Stripe

wordpress function breaks wp-admin

Insert multidimensional array to codeigniter cart

VB.NET WebRequest with PHP POST

file_put_content...fail to open stream:Permission denied in Laravel 5

Changing font color in javascript

Laravel query builder binding parameters more than once

"Unable to load dynamic library 'pdo_sqlsrv.so' "Cenos7 PHP7.2.10

PHP header location absolute URL

Put content of wordpress page inside div

How to change product Image when variables are selected in Shop and Archive Pages?

How to convert a carbon into string, to take the date only?

GuzzleHttp Hangs When Using Localhost

Sum array values of a column within each column of an array with 3 levels

About Contact Privacy policy Terms and conditions