• 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

Hi, I am making a contact form thingy, and my php isn't working any reason why?

Handling expired token in Laravel

PHPExcel file download using AJAX call

Laravel 4 Redirect::back() not going to previous page (refreshing current page)

Xdebug 3 not showing in phpinfo on m1 Monterey

Sum column values from multiple arrays

PHP Print to Network Printer

Can I use a WooCommerce function without any WooCommerce page?

How can i update or reset my password without entering email field in laravel-8?

How to install php_imagick on wamp64

Form repeater send wrong data with last element in Laravel

CSS file not imported in laravel blade view

HTML and PHP in one file

How to submit a form when page loads using JavaScript?

LARAVEL: How to fetch id dynamically in a query builder?

About Contact Privacy policy Terms and conditions