• 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

Why rand() every time I refresh the page?

PHP: Insert marker every 3 iterations

User pool client {id}does not exist

Pass a select with mysqli_fetch_row to a table

How to submit the custom form data in database in WordPress without plugin using ajax?

How to make dot match newline characters using regular expressions

Send Outlook 2010 email using PHP

Elastic Beanstalk with Laravel Envoy

How to load Codeigniter 4 lang file into an array variable

Get keys from associative array [duplicate]

Transpose multidimensional array and join values with commas

How to fix " Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() " problem in php 7.1.3 and jpgraph 4.2.6?

using random function but it's displaying duplicates

WooCommerce Subscriptions: Remove role on cancelled subscription

Submitting a form with ajax in Wordpress

About Contact Privacy policy Terms and conditions