• 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

How to use React Router with Laravel?

Need to display only array value in JSON output

(PHPUnit) PHP Fatal error: Uncaught Error: Call to undefined function each()

How to update array value in Laravel

Two buttons one form

Nginx disallowing execution of PHP in uploads directory with Magento

add_action() function in wordpress not working [duplicate]

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

Adding Multiple Custom Post Types in Wordpress

How to get monthly wise data in laravel

Log a user out of a website when they put their computer to sleep

Invalid value in field "itemtype" in Google Search Console

renameColumn migration fails for existing column with columns does not exist error

Laravel Unresolvable dependency resolving [Parameter #0 [ <required> $method ]] in class GuzzleHttpPsr7Request

how to get value from array in laravel

About Contact Privacy policy Terms and conditions