show_widgets.php

<?php add_action( 'wp_footer', function() // works best, but does not show up if the footer is removed.. // add_action( 'admin_menu', function() // Hides a bit, but copy and past to textfile to read { if ( empty ( $GLOBALS['wp_widget_factory'] ) ) return; $widgets = array_keys( $GLOBALS['wp_widget_factory']->widgets ); print '<pre>$widgets = ' . esc_html( var_export( $widgets, TRUE ) ) . '</pre>'; }); ?>
Shows registered widgets in wordpress, so it's easier to get their names, and remove them at will.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.