Created
February 6, 2018 12:08
-
-
Save boswall/4a2d648bb102b2181e61e39a87205599 to your computer and use it in GitHub Desktop.
WordPress Plugin Info Dumper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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