• 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 to reset Laravel AuthManager/guards in between API calls in tests?

Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path: ) in Unknown on line 0

Having issue with matching rows in the database using PDO

PHP mail sending empty mails

Autoloading classes in PHPUnit using Composer and autoload.php

Wordpress wpdb->delete issue

Image upload not working through ajax Laravel

How to fix 'Data has already been sent to output, unable to output PDF file' in MPDF

PHP: remove filename from path

html-php form submission after validation through JavaScript [closed]

Using Associative arrays

Wordpress 'post_type_link' hides permalink

If you intend you use SMTP, add your SMTP Code after this Line

Remove "estimated for {country}" text after tax amount in Woocommerce checkout page

Extract string between first whitespace and last whitespace in php

About Contact Privacy policy Terms and conditions