• 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

PHP using str_starts_with for array to exclude same as with wildcard

How to to send mail using gmail in Laravel?

Xdebug in Laravel is not working with VSCode

Check If array is null or not in php

How to unlink image from folder?

How to pass data to all views in Laravel 5?

Sync Records With Default Values in Pivot Tables, Call to undefined method syncWithPivotDefaults()

laravel controller function parameters

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

Sentry on Symfony: how to exclude `NotFoundHttpException`

TesseractOCR not working for Laravel

Laravel You requested 1 items, but there are only 0 items available

Alert message after submitting form in PHP

How can I create a Download Page with post php method?

Json_Encode not returning html even i try to encode JSON_HEX_QUOT | JSON_HEX_TAG

About Contact Privacy policy Terms and conditions