• 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

Convert regular text to array using notepad++

How to get company posts from LinkedIn via API?

Phpunit partial mock + proxy Entity

I want to display default profile image if user do not have profile image

getting error while enter Command => php artisan route:list

How to give apache permission to write to home directory?

Limit WooCommerce products in cart only from one custom taxonomy

Eloquent insert id with sequence next value

yii2 and mssql insert varbinary into model

how to search for a file with php

Yii2: How do I debug console commands?

Laravel Model save() & update() Not Saving

phpunit - mockbuilder - set mock object internal property

laravel automatically deletes server.php on php artisan serve

Correctly determine if date string is a valid date in that format

About Contact Privacy policy Terms and conditions