• 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

Updating and Synchronizing Woocommerce Subscriptions to Custom Date

Could not decode a text frame as UTF-8.

PHP Slim Framework request using withAttribute error

(Laravel) How to delete multiple models including optional relationships?

add_action() function in wordpress not working [duplicate]

How to find phpcs current default standard

Increase value by 1 on button click

Confirm Leave on External Links in Wordpress

Add Metadata, headers (Expires, CacheControl) to a file uploaded to Amazon S3 using the Laravel 5.0 Storage facade

Add 2 Webcam in one page with WebcamJS

Problem with fetching data from database in Laravel

How to redirect to another page after n seconds in wordpress without using javascript?

Mysqli multi query error

How to submit a form when page loads using JavaScript?

Is it possible to change the table name in the migration file-laravel

About Contact Privacy policy Terms and conditions