• 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

Yii2 redirecting to previous page after login

Laravel Sanctum CSRF not authenticating

How to Generate PDF invoice to XML format using mPDF

PHP random string generator

Get image type from base64 encoded src string

stay with the last 15 elements of an array [duplicate]

How can i hide dt if dd got empty value

Unable to guess the mime type as no guessers are available Laravel 5.2

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

Make Calculator - When Button clicked the No shows in Textbox.

how can I set a session variable in Drupal 8 and get it in a php script?

wp_remote_get() not passing authentication

PHP-Sort array based on another array?

How to fix " Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() " problem in php 7.1.3 and jpgraph 4.2.6?

What is the difference between client-side and server-side programming?

About Contact Privacy policy Terms and conditions