• 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

Pass an image through AJAX [duplicate]

PHP: PDO + CSV export not downloading (headers issue?)

Why is this PHP array not the same?

Laravel Unknown Column 'updated_at'

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

How can I make Laravel return a custom error for a JSON REST API

How to create a cookie to store the timestamp of when a page is first loaded with php

Wordpress add responsive srcset header image to theme

Inserting data into SQL Server Db An Invalid direction was specified

Apply filter array/return terms

Check If array is null or not in php

How Can I Do LIMIT 1, 2 In WP_Query

Can I use a WooCommerce function without any WooCommerce page?

Laravel dosen't connect with Oracle

Convert every two values of an associative array into key-value pairs

About Contact Privacy policy Terms and conditions