PluginProbe ʕ •ᴥ•ʔ
Classic Widgets / 0.3
Classic Widgets v0.3
trunk 0.1 0.2 0.3
classic-widgets / classic-widgets.php
classic-widgets Last commit date
LICENSE.md 5 years ago classic-widgets.php 4 years ago readme.txt 5 months ago
classic-widgets.php
34 lines
1 <?php
2 /**
3 * Classic Widgets
4 *
5 * Plugin Name: Classic Widgets
6 * Plugin URI: https://wordpress.org/plugins/classic-widgets/
7 * Description: Enables the classic widgets settings screens in Appearance - Widgets and the Customizer. Disables the block editor from managing widgets.
8 * Version: 0.3
9 * Author: WordPress Contributors
10 * Author URI: https://github.com/WordPress/classic-widgets/
11 * License: GPLv2 or later
12 * License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
13 * Text Domain: classic-widgets
14 * Domain Path: /languages
15 * Requires at least: 4.9
16 * Requires PHP: 5.6 or later
17 *
18 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
19 * General Public License version 2, as published by the Free Software Foundation. You may NOT assume
20 * that you can use any other version of the GPL.
21 *
22 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
23 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24 */
25
26 if ( ! defined( 'ABSPATH' ) ) {
27 die( 'Invalid request.' );
28 }
29
30 // Disables the block editor from managing widgets in the Gutenberg plugin.
31 add_filter( 'gutenberg_use_widgets_block_editor', '__return_false' );
32 // Disables the block editor from managing widgets.
33 add_filter( 'use_widgets_block_editor', '__return_false' );
34