-
Notifications
You must be signed in to change notification settings - Fork 60
/
widgets.php
31 lines (30 loc) · 1003 Bytes
/
widgets.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* Unregister default widgets
*
* @link https://developer.wordpress.org/reference/functions/unregister_widget/
*/
add_action(
'widgets_init',
function () {
unregister_widget( 'WP_Nav_Menu_Widget' );
unregister_widget( 'WP_Widget_Archives' );
unregister_widget( 'WP_Widget_Calendar' );
unregister_widget( 'WP_Widget_Categories' );
unregister_widget( 'WP_Widget_Custom_HTML' );
unregister_widget( 'WP_Widget_Links' );
unregister_widget( 'WP_Widget_Media_Audio' );
unregister_widget( 'WP_Widget_Media_Gallery' );
unregister_widget( 'WP_Widget_Media_Image' );
unregister_widget( 'WP_Widget_Media_Video' );
unregister_widget( 'WP_Widget_Meta' );
unregister_widget( 'WP_Widget_Pages' );
unregister_widget( 'WP_Widget_Recent_Comments' );
unregister_widget( 'WP_Widget_Recent_Posts' );
unregister_widget( 'WP_Widget_RSS' );
unregister_widget( 'WP_Widget_Search' );
unregister_widget( 'WP_Widget_Tag_Cloud' );
unregister_widget( 'WP_Widget_Text' );
},
11
);