• 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 8 Multiple Relationships for Factory

How to get the total hour from starting time to end time in php

Chunk and transpose a flat array into rows with a specific number of columns

Call to a member function givePermissionTo() on null

Wordpress how to get the post thumbnail inside a figure tag

How to convert a carbon into string, to take the date only?

Update Total in checkout of Woocommerce with Ajax Request

SQL AVG() to 2 decimals

PHP Print to Network Printer

PHP: PDO + CSV export not downloading (headers issue?)

HTTP Range requests with php for Video Embedding for solving going to specific time in video (seek bar not work)

wordpress : How to specify the cause "This site can’t be reached"

What is PHP's equivalent of JavaScript's "array.every()"?

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

api response laravel doesn't show

About Contact Privacy policy Terms and conditions