• 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

PHP: Insert marker every 3 iterations

How to get rid of ampersand using WP Nonce URL and WP Redirect or PHP header

how to redirect the user back to desired URL after login page in PHP?

Codeigniter, Severity: error --> Exception: Too few arguments to function, admin dashboard shows HTTP error 500

Reorder attribute dropdown terms in Woocommerce single variable products

how to loop through json response data using ajax jquery?

Object of class stdClass could not be converted to string error

target [LaravelFortifyContractsRegisterViewResponse] is not instantiable

merge all files in directory to one text file

How to get the total hour from starting time to end time in php

laravel controller function parameters

Laravel 8: Array to string conversion while calling route:list

Laravel 5 session not persisting after user is logged in

"properties should not be accessed directly" issue during WooCommerce 3.0 checkout

Class AppHttpControllersUserController Does Not Exist

About Contact Privacy policy Terms and conditions