• 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 Route issues with Route order in web.php

str_replace or preg_replace random number from string

Backend cannot be reached after Typo3 login screen

javascript html popup window

I want to display a sweetalert after the inserting of data in my database

WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

How to extract price from given url using Xpath?

Access denied for user 'homestead'@'localhost' (using password: YES)

Array to string conversion

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

php: command not found Command PhaseScriptExecution failed with a nonzero exit code

PDOException SQLSTATE[HY000] [2002] No such file or directory

how to remove white space in select 2

SQL AVG() to 2 decimals

Passing a boolean value from checkbox in Laravel form

About Contact Privacy policy Terms and conditions