• 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

Best way to scrolldown onpageload

Submitting a form with ajax in Wordpress

Is it possible to change the table name in the migration file-laravel

WordPress - Dynamically add user ID to the end of a URL

Filter WooCommerce products with post__in and additional meta queries

get folder directory from input type file - PHP

Show rotation of tweets using current day of month

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

Results page in other window

Array to string conversion

PHP: Print caught exception like Xdebug

Laravel Jetsream Profile page not loading on fresh install

Timber: Single post pagination does not work (wp_link_pages)

Cache clear probem in Larave

Display the WooCommerce product price inside a custom function

About Contact Privacy policy Terms and conditions