• 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 multi auth - Authentication user provider [] is not defined

How to get median and quartiles/percentiles of an array in JavaScript (or PHP)?

How to upload mpdf file after generating to s3 bucket in php

Symfony Mercure "Failed to send an update"

Popup Window and PHP form

storagelogs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

How to assert parameter attribute sub-structures in PHPUnit mock call expectations

how to validate form data in codeigniter 4

Create a new line whenever an array value reaches more than 10 characters

Why does array_map() with null as callback create an "array of arrays"?

PHP file_get_contents function

How can I format this number correctly using PHP?

"Notice: Undefined variable", "Notice: Undefined index", "Warning: Undefined array key", and "Notice: Undefined offset" using PHP

Elastic Beanstalk with Laravel Envoy

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

About Contact Privacy policy Terms and conditions