• 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

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'posts.post' doesn't exist

How to Make Laravel Eloquent "IN" Query?

SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'column_name' in Laravel

SQL to convert multiple rows into a single row of variable length

What is the difference between client-side and server-side programming?

Yii2 redirecting to previous page after login

Why "Class 'GuzzleHttpClient' not found" even after Installing it in Laravel?

Check if user online laravel

Woocommerce product attributes with hierarchy like categories

php 7 php.ini upload_max_filesize not working

Create a zip file and download it

how to use extended ASCII instead of unicode in PHP

Xdebug in Laravel is not working with VSCode

Laravel Database Strict Mode

How to put php code inside opening and closing shortcodes

About Contact Privacy policy Terms and conditions