• 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

Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in

How to validate Envato Purchase Code in PHP

carbon generated datetime not stored correctly into the database

PHPExcel_IOFactory::createWriter causes wrong behaviour

How to install LDAP in Docker php-fpm alpine

Laravel 5.2: Unable to locate factory with name [default]

Check If array is null or not in php

Check if a string contain multiple specific words

(Laravel) How to delete multiple models including optional relationships?

Star and Half Star Rating in Laravel

How can I make a full text index of the column?

Custom API and cunsuming in php?

PHP - Check if string contains words longer than 4 characters, then include "+ *", and for those shorter than 4 characters include only "*"

Why is this PHP array not the same?

How to make Canonicals with PHP

About Contact Privacy policy Terms and conditions