How To Remove the Akismet Widget
-
It might be coming handy to you if you would like to unclutter the widgets interface of your wordpress blog: here is how to remove the Akismet Widget (that displays the number of spam blocked – hardly something you want your visitors to see).
Add this to your functions.php file:
function unregister_widgets(){ unregister_widget( 'Akismet_Widget' ); } add_action( 'widgets_init', 'unregister_widgets' );
Here is a list of all sorts of widgets that you might want to remove (add them to the hereabove function):
unregister_widget( 'WP_Widget_Pages' ); unregister_widget( 'WP_Widget_Calendar' ); unregister_widget( 'WP_Widget_Archives' ); unregister_widget( 'WP_Widget_Links' ); unregister_widget( 'WP_Widget_Categories' ); unregister_widget( 'WP_Widget_Recent_Posts' ); unregister_widget( 'WP_Widget_Search' ); unregister_widget( 'WP_Widget_Tag_Cloud' ); unregister_widget( 'WP_Widget_Meta' ); unregister_widget( 'WP_Widget_Recent_Comments' ); unregister_widget( 'WP_Nav_Menu_Widget' ); unregister_widget( 'WP_Widget_RSS' ); unregister_widget( 'WP_Widget_Akismet' ); unregister_widget( 'Akismet_Widget' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How To Remove the Akismet Widget’ is closed to new replies.