• 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

XML to CSV with PHP converter [problem with images grabing]

How to separate letters and digits from a string in php

How to convert time from one timezone to another in PHP

Change user role if checkout custom checkbox is checked in WooCommerce

I want a way to give path to my files which are outside of public folder in laravel

How to add a heading in between checkout fields of WooCommerce

How avoid Moved Permanently The document has moved here

JQuery content editable div and text box on submit not sending POST

How to get an Array value inside an object in an array Php [duplicate]

Transpose and flatten multiple rows of array data [duplicate]

Display the default discounted price and percentage on Woocommerce products

Uncaught TypeError: Cannot read property 'length' of null when retrieving tags from wp

How to get the ID of the link in another page in php

Laravel Livewire: jQuery not working in child component loaded via @if statement

How to insert data from multiple select dropdown values into database?

About Contact Privacy policy Terms and conditions