• 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

Invalid value in field "itemtype" in Google Search Console

How to add a custom field to all Woocommerce attribute terms using add_action

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

Can I use a WooCommerce function without any WooCommerce page?

Get latest Tweets - What API

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

PHP block shortcut in Visual Studio Code

Insert a DIV after the 6th product only once in WooCommerce category archives

PHP cURL (SSL certificate problem: self signed certificate in certificate chain)

Laravel insert dynamic input values with radio button

Class AppHttpControllersUserController Does Not Exist

Remove "estimated for {country}" text after tax amount in Woocommerce checkout page

Project structure for PHP

Update Order custom Field value with WooCommerce REST API

How to get result of the formula on import xlsx with maatwebsite using Laravel? I get formula and not value of the formula

About Contact Privacy policy Terms and conditions