• 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 do I set the maximum php memory limit

How to show a popup modal in codeIgniter?

Minimum order amount except for specific shipping method in WooCommerce

PHP Warning: Module already loaded in Unknown on line 0

Cross-Origin Resource Sharing (CORS) witth Laravel and Vuejs

Converting alphabet letter to alphabet position in PHP [duplicate]

Sum array values

How to add class name to an existing tag in php

PHP mail sending empty mails

how to prevent float variables displaying as scientific notation when printing [duplicate]

PHP: PDO + CSV export not downloading (headers issue?)

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

Return new collection without modifying original collection

"cannot list resources" error from WooCommerce REST API

Unable to get password for the instance created from AMI

About Contact Privacy policy Terms and conditions