• 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

is there any way to validate a field that sometime is File(image) && sometime is String(Src of same image)

Laravel after login Two factor not working

Send same name multiple checkbox values via ajax

Facebook PHP SDK - will not logout properly

PHP Startup Unable to load dynamic library /usr/lib/php/20151012/php_mysqli.dll

PHP code for generating decent-looking coupon codes (mix of letters and numbers)

How to convert the int value to inch in PHP [closed]

Component install error: JInstaller: :Install: File does not exist

possible options to create pdf file using html elements to generate invoice in php and codeigniter

Symfony Error: "An exception has been thrown during the rendering of a template"

How to get an Array value inside an object in an array Php [duplicate]

How to get AJAX to post on second page?

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

How can I get a div content in php

Changing font color in javascript

About Contact Privacy policy Terms and conditions