• 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

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

How to convert a carbon into string, to take the date only?

How to properly set "0000-00-00 00:00:00" as a DateTime in PHP

json_encode turns array into an object

How to fix Call to undefined method AppModelsTableName::factory?

Insert And Retrieve Data in MySQL with $.post Noob Question

How to Generate PDF invoice to XML format using mPDF

How to get the ID of the link in another page in php

Laravel set default language not working

Using array_intersect on a multi-dimensional array

Using Associative arrays

PHP mail function is sending blank message body

Last order would be re-order in wooCommerce. How is it possible?

Laravel Sanctum CSRF not authenticating

Call authenticate manually in router middleware

About Contact Privacy policy Terms and conditions