• 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 get rid of ampersand using WP Nonce URL and WP Redirect or PHP header

I'm trying to use curl with php but getting this error:Could not resolve host: Bearer

PHP Deprecated issue when running artisan command

Wordpress 'post_type_link' hides permalink

How to get Laravel's CSRF Token from Another Website?

Confirm Leave on External Links in Wordpress

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

correct PHP headers for pdf file download

How to create a individual template for page or post in custom plugin?

Unable to run composer install

Log a user out of a website when they put their computer to sleep

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

PHP: Print caught exception like Xdebug

How to modify CSS in a specific page of the WP admin dashboard (backend)

How to get variable from JavaScript to PHP [duplicate]

About Contact Privacy policy Terms and conditions