• 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

PHP only Hit Counter?

PHP code for generating decent-looking coupon codes (mix of letters and numbers)

Can't call javascript alert alertify library from PHP

Woocommerce Checkout - Add conditional field required if one field is filled

CSS file not imported in laravel blade view

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

curl returning 301 error after migrating to https

How to add a custom field to all Woocommerce attribute terms using add_action

Search for array row with specific column value and return another value from qualifying row

nginx err_connection_refused, can anyone help me?

Destroy session upon refresh

Adding custom body class to the custom archive pages

MISSING UPDATES FOR: MEDIA Drupal 9

Limit WooCommerce products in cart only from one custom taxonomy

Attempted to call an undefined method named "get" of class "MailController"

About Contact Privacy policy Terms and conditions