• 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

browsersync doesn't work with XAMPP

Login if user is active using Laravel Breeze

Laravel 8: Array to string conversion while calling route:list

Eloquent insert id with sequence next value

PHP Discord OAUTH2 code sample not working

Error Class "LaravelFortifyFeatures" not found

PHP to search within txt file and echo the whole line

Don't show recurring price for WooCommerce subscriptions worth 0$

Session timeout in Yii2

Having issue with matching rows in the database using PDO

Extract house numbers from address string

insert multiple rows in a saveall in cakephp

Star and Half Star Rating in Laravel

How can I get user id from session in javascript?

PHP 8.1: strftime() is deprecated

About Contact Privacy policy Terms and conditions