• 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

Problem with fetching data from database in Laravel

Jquery DataTables: Data not displaying in table via Ajax

Laravel: HTML in notification

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

PHP: set a (deep) array key from an array [closed]

Why do I have invalid argument supply for foreach in Laravel for json response? [duplicate]

Apply filter array/return terms

Dropdown with current value from Mysql

Wordpress wpdb->delete issue

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

How to change HTML structure inside WP <head>

PHP mail function is sending blank message body

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

Facebook PHP SDK - will not logout properly

About Contact Privacy policy Terms and conditions