• 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

get folder directory from input type file - PHP

Converting alphabet letter to alphabet position in PHP [duplicate]

how to remove %20 in the url in php

How to write PHP in XSLT

Using spatie/media-library, how to rename a collection of uploaded files?

Error when uploading certain .png files "Interlace handling should be turned on when using png_read_image"

Testing subscription renewals on Stripe

Only on Firefox "Loading failed for the <script> with source"

get attribute from class not working php 7

Wordpress 'post_type_link' hides permalink

Put content of wordpress page inside div

Upload a file Using PHP and JavaScript

Custom post type single page not working

Currently Using CodeIgniter Framework i have an Error

Fatal error: Array callback has to contain indices 0 and 1

About Contact Privacy policy Terms and conditions