• 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

PHP password_verify

Invalid value in field "itemtype" in Google Search Console

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

Filter WooCommerce related products by Polylang language

protect my blog content

How to solve Duplicate entry '0' for key 'PRIMARY' in Wordpress?

WooCommerce Subscriptions: Remove role on cancelled subscription

How to insert data from multiple select dropdown values into database?

Destroy session upon refresh

Server-sent events in PHP (without echo or print)

PHP: Calling MySQL Stored Procedure with Both INPUT AND OUTPUT Parameters (NOT "INOUT")

PHPMetrics option --excluded-dirs="myfolder" : myfolder dir is not excluded within docker

OctoberCMS / Anonymous Global Scope

Laravel: Create morphs() relationship nullable

How to reset Laravel AuthManager/guards in between API calls in tests?

About Contact Privacy policy Terms and conditions