• 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: Insert marker every 3 iterations

How to get variable from JavaScript to PHP [duplicate]

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

sort() not affecting original array while inside foreach loop

PHP: Convert any string to UTF-8 without knowing the original character set, or at least try

Google API Heatmap Layer exception, why?

Fetch files from next cloud storage and display in Laravel website

HTML + PHP + PHPMAILER

Shortcode or PHP inside a shortcode in Wordpress

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

Transpose csv file data [duplicate]

How to get page number on dompdf PDF when using "view"

Check for PDO Results, If None Display Message, If Yes then Loop Through

Printing more than one array using print_r or any other function in php

Execute only one time and then wait set period of time before executing again

About Contact Privacy policy Terms and conditions