• 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

Laravel Unresolvable dependency resolving [Parameter #0 [ <required> $method ]] in class GuzzleHttpPsr7Request

Require a class from another class - php

How can I get a div content in php

Set quantity minimum, maximum and step at product level in Woocommerce

how to youtube api data to print in toolset metabox using a button click before save-post

How to update array value in Laravel

Laravel Get Days In Month From Month Number?

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

MySQL upgrade causing unexpected results on simple WHERE clauses

Log a user out of a website when they put their computer to sleep

Why i get wrong output for html markdown?

Can't exclude directories from .htaccess mobile redirect?

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

How to show a popup modal in codeIgniter?

Cache clear probem in Larave

About Contact Privacy policy Terms and conditions