• 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 Livewire: jQuery not working in child component loaded via @if statement

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

Laravel s3 upload file with metadata using pre-signed url

How to add class name to an existing tag in php

echo language construct is discouraged. (PHP)

Display a success custom notice after Placing an Order in WooCommerce

get folder directory from input type file - PHP

Laravel 8 factory state afterCreating

how to see if database exists with PDO [duplicate]

php curl_exec() Connection refused when retrieving a remote image

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

How to install LDAP in Docker php-fpm alpine

Star and Half Star Rating in Laravel

wordpress function breaks wp-admin

Call authenticate manually in router middleware

About Contact Privacy policy Terms and conditions