• 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

How to extract price from given url using Xpath?

Where do I need to place a hook for phpunit?

Change the alert text on add to cart action without selected variation in Woocommerce

virtctl works when executed via command line but not from php exec()

storagelogs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

Call to undefined function openssl_decrypt

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

Dropdown with current value from Mysql

Laravel relationship belongsToMany with composite primary keys

Appending data to an anchor tag

How to remove index.php and index from the URL using htaccess | PHP

how do i retrieve and display the alt text of an image in wordpress?

How to add a sidebar to Woocommerce Shop Page?

Twig - How to check if variable is a number / integer

MySQL - Connection failed: No route to host

About Contact Privacy policy Terms and conditions