• 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

How to use functions that are declared in snippets in Evolution CMS (Modx) in an external PHP Script?

laravel automatically deletes server.php on php artisan serve

Laravel-fopen: failed to open stream: Permission denied

Wordpress add responsive srcset header image to theme

I want to display a sweetalert after the inserting of data in my database

PHPMyAdmin not working as intended at remote server. Error 500, $respond not found

SlimExceptionHttpNotFoundException

Sentry + Laravel: how to log an already catched Exception?

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

Manage independently the decimal number of the price of each product [duplicate]

Parameter is not sent to Laravel route in Ajax

Adding hreflang tags automatically in WordPress subdirectory multisite

Laravel no logout option from menu after successfull login

Cant seem to get the Pagination to work on my WooCommerce REST API application?

500 Internal Server Error on Ajax request. Not sure the origin of the problem

About Contact Privacy policy Terms and conditions