Skip to content

Instantly share code, notes, and snippets.

@boswall
Created February 6, 2018 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boswall/4a2d648bb102b2181e61e39a87205599 to your computer and use it in GitHub Desktop.
Save boswall/4a2d648bb102b2181e61e39a87205599 to your computer and use it in GitHub Desktop.
WordPress Plugin Info Dumper
<?php
/*
Plugin Name: Plugin Info dumper
Plugin URI: http://drivedigital.co.uk/
Description: Dump the plugin info.
Author: Matt Rose
Version: 1.0
Author URI: http://drivedigital.co.uk/
*/
add_action( 'admin_menu', 'plugdump_menu' );
function plugdump_menu() {
add_options_page(
'Plugin Info',
'Plugin Info',
'manage_options',
'plugdump.php',
'plugdump_page'
);
}
function plugdump_page() {
?>
<h1>Plugin Info dumper</h1>
<textarea class="widefat"><?php print_r( get_plugins() ); ?></textarea>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment