• 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

Can I use a WooCommerce function without any WooCommerce page?

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

Laravel SQL query midnight time not showing

Remove product downloads section in woocommerce email notifications

Prestashop webservice API creating cart rules

run a query using EXECUTE BLOCK to prepair a column for an unique-Index

Minimum order amount except for specific shipping method in WooCommerce

How to use a PHP MVC Controller, one thats invoked by calling a URL, to call and execute more than one function? [duplicate]

how to pass row id in href of a tag in codeigniter controller?

CodeIgniter extend CI_URI undefined method

Do I need to install `fxp/composer-asset-plugin` if I'm not doing front-end development

Wordpress wpdb->delete issue

sort() not affecting original array while inside foreach loop

Access relation of pivot table in Laravel

How to set time with DateTime modify?

About Contact Privacy policy Terms and conditions