• 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 excel maatwebsite 3.1 import, date column in excel cell returns as unknown format number. How to solve this?

How to fix 'Data has already been sent to output, unable to output PDF file' in MPDF

Toggle between a textbox and a select using PHP

Display Link Title Instead of URL in XSL

Laravel post contact form giving me error 419

Xdebug can't connect back to Docker host

Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in

add_action() function in wordpress not working [duplicate]

PHP Include for HTML?

laravel 5.6 bulk inserting json data

How in Laravel run JavaScript code stored in php variable?

Natural ORDER in Laravel Eloquent ORM

enroll_table three field fetch to payment form to create payment field in laravel 5.5

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'posts.post' doesn't exist

Unable to create lockable file - Laravel 8 & PHP 8

About Contact Privacy policy Terms and conditions