• 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 DOTENV unable to load env vars

How do I upload a laravel project on cPanel shared hosting?

The sum of the user's points

How to get AJAX to post on second page?

Array to string conversion

How to load Codeigniter 4 lang file into an array variable

How to get the total hour from starting time to end time in php

Add a custom text for a particular product on specific email notification in Woocommerce

Change user role if checkout custom checkbox is checked in WooCommerce

Symfony Mercure "Failed to send an update"

Stop caching for PHP 5.5.3 in MAMP

backup files to google drive using PHP

PHP Slim Framework request using withAttribute error

How to add automatically collapse/expand in content wordpress (single.php)?

woocommerce change position of price

About Contact Privacy policy Terms and conditions