• 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

PHPExcel export HTML table to xlsx

Loading data from MySQL and populating dropdown select with jQuery Mobile, PHP

How to Generate PDF invoice to XML format using mPDF

Calculating Median of an array in PHP

Display specific shipping method if woocommerce product has specific acf field value

How to debug in WooCommerce 3+

Find out the name of the last script that included the current one

How to redirect to another page after n seconds in wordpress without using javascript?

Shortcode or PHP inside a shortcode in Wordpress

Any AWS EB Laravel route getting 404 Not Found nginx/1.16.1

backup files to google drive using PHP

Add rows to Single product Additional information table in WooCommerce 3.6

Session timeout in Yii2

Handling expired token in Laravel

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

About Contact Privacy policy Terms and conditions