• 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

Transform array, set each array element with parent key php

How to identify whether webp image is static or animated?

Target Individual Form Instance/Counter Inside A PHP While Loop

How do I remove this delivery notification from here?

MySQL order by field in Eloquent

php script to delete files older than 24 hrs, deletes all files

How to override header set in Apache config with more specific header in a virtual host

How to write PHP in XSLT

WooCommerce Additional Information - if empty, hide

Laravel - How to properly generate unique slugs from article titles?

Can we define variables in `.tpl` files?

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

Implode array with array of glue strings

How to implement placeholder in a php file for moodle plugin?

How to solve Duplicate entry '0' for key 'PRIMARY' in Wordpress?

About Contact Privacy policy Terms and conditions