• 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

How can I make this nested location configuration use the correct path to call a php program?

Two buttons one form

Sum array values of a column within each column of an array with 3 levels

get folder directory from input type file - PHP

How to extract price from given url using Xpath?

Prestashop webservice API creating cart rules

html-php form submission after validation through JavaScript [closed]

How to test a php login connected to a mysql db through xampp?

Implode columnar values between two arrays into a flat array of concatenated strings

how to hide previous markers when new markers added in google map javascript api

Utf8 encoding issue with Laravel

Combine multiple columns into an array as one of the key in a results set

Adding one microsecond to Datetime object in PHP

Limit login attempts in Laravel 5.7

How to find the date a user created their Google account

About Contact Privacy policy Terms and conditions