• 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

how to loop through json response data using ajax jquery?

CONCAT columns with Laravel 5 eloquent

Custom add to cart button URL for specific product in WooCommerce?

Stop caching for PHP 5.5.3 in MAMP

Show rotation of tweets using current day of month

How to add a custom field to all Woocommerce attribute terms using add_action

Querying only one row from a one to many relationship laravel

Convert regular text to array using notepad++

Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in

Wordpress 'post_type_link' hides permalink

Add 2 Webcam in one page with WebcamJS

Warning file_get_contents () failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required

Entity provider not working in security.yml php symfony3.4 ({"code":401,"message":"bad credentials"}.)

Nginx disallowing execution of PHP in uploads directory with Magento

Whats the point of running Laravel with the command 'php artisan serve'?

About Contact Privacy policy Terms and conditions