• 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

Laravel 5.1 xmlHttpRequest AJAX POST TokenMismatchException

merging two arrays with specified index

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

PHP Discord OAUTH2 code sample not working

Laravel Displaying image from database

Unable to Edit config.inc.php

Implode columnar values between two arrays into a flat array of concatenated strings

How to override htaccees file for cache control header

PHP mail function is sending blank message body

Upload a file Using PHP and JavaScript

How to skip cart page on woocomerce for certain products only?

How to pass security cloudflare server with php curl

Get WooCommerce product variation attribute terms in admin products general box

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

Yii2: How do I debug console commands?

About Contact Privacy policy Terms and conditions