• 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

Statement that checks whether a URL contains a particular path?

Converting alphabet letter to alphabet position in PHP [duplicate]

How can i hide dt if dd got empty value

Symfony Mercure "Failed to send an update"

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

jQuery Ajax Post with data

Render the content of default_filter.php in Joomla front-end

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource [duplicate]

Custom post type single page not working

Xdebug can't connect back to Docker host

Laravel PackageManifest.php: Undefined index: name

Laravel s3 upload file with metadata using pre-signed url

Laravel - How to properly generate unique slugs from article titles?

How to create a video stream from a single dynamic image in PHP

How do I remove this delivery notification from here?

About Contact Privacy policy Terms and conditions