• 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

Fatal error: [] operator not supported for strings

What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

Explode not working properly with dash

WHM Enabling mod_rewrite

MySQL default time format UTC or GMT?

Send same name multiple checkbox values via ajax

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

Make Shipping Method fields Mandatory on Woocommerce checkout page

Display Link Title Instead of URL in XSL

How to remove Deprecated SymfonyComponentDebugDebugClassLoader?

CSV to PHP class properties

PHP Find Array Index value in multi-line array

Currently Using CodeIgniter Framework i have an Error

If action is on a different page do I use fwrite function

How to redirect to another page and call a Function there on Angular ng-click

About Contact Privacy policy Terms and conditions