• 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

Increase value by 1 on button click

Natural ORDER in Laravel Eloquent ORM

Boolean assignment operators in PHP

Magento Installation SQLSTATE[HY000] [2002] No such file or directory error

PhpSpreadSheet: How to save Workbook sheets in individual CSV files

onKeyUp event calculation not working on the following rows from php generated forms except the first one

How to get array values using foreach in laravel

PHP each() function replacement

Search for array row with specific column value and return another value from qualifying row

How to Create WooCommerce Subscription Product via. REST API?

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

Laravel You requested 1 items, but there are only 0 items available

How to read laravel_session cookies saved in cookie memory of browser in client side?

How to run or debug php on Visual Studio Code (VSCode)

How to auto populate preferredCountries from intl-tel-input with db output

About Contact Privacy policy Terms and conditions