• 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 Array split string and Integers

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

How can I make Laravel return a custom error for a JSON REST API

(Cache::lock()) -> get() -- Under what conditions does it return false?

Can I use a WooCommerce function without any WooCommerce page?

Laravel Excel::store file empty after stored

How to install ZeroMQ for PHP on an Alpine Linux container?

Convert string to lowercase AND then convert it to its original form in PHP, is it possible?

php retrieve specific data onclick from database in a list format

if statement inside concatenation

How to submit a form when page loads using JavaScript?

How can i call a function that executes an fpdf based on the choice of a form selector?

Call authenticate manually in router middleware

Converting array to string and then back in PHP

Display the WooCommerce product price inside a custom function

About Contact Privacy policy Terms and conditions