• 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

MOODLE: What does it mean to aggregate h5p assets?

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

How to retrieve Active Directory group policy maximum password age using LDAP

Laravel s3 upload file with metadata using pre-signed url

Submitting a form with ajax in Wordpress

Symfony 4: how to allow dynamic values for array nodes in bundle configuration?

Create tags in laravel post publishing

Unsure why I am getting: Number of variables doesn't match number of parameters in prepared statement

array_map triple dimensional array [duplicate]

Form Validation and Submission to database

How to convert time from one timezone to another in PHP

Smarty: undefined extension class 'Smarty_Internal_Method_Get_Template_Vars'

How to delete old images from public folder on update using Laravel

how to get value from array in laravel

find in set in laravel ? example

About Contact Privacy policy Terms and conditions