• 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 Can I Do LIMIT 1, 2 In WP_Query

XML to CSV with PHP converter [problem with images grabing]

Laravel Delete and Update

How to debug in WooCommerce 3+

PHP7 CLI attempts to load xdebug twice - "Cannot load Xdebug - it was already loaded"

Woocommerce redirect after add-to-cart error

JQuery content editable div and text box on submit not sending POST

dompdf and img tag, image wont show

Two buttons one form

how to see if database exists with PDO [duplicate]

auth pages not getting css in laravel

Form Validation and Submission to database

How to find the date a user created their Google account

Remove country code from phone number?

wordpress function breaks wp-admin

About Contact Privacy policy Terms and conditions