Code to see a list of your plugins
-
Maybe that could help some of you:
<?php
// Check if get_plugins() function exists. This is required on the front end of the
// site, since it is in a file that is normally only loaded in the admin.
if ( ! function_exists( ‘get_plugins’ ) ) {
require_once ABSPATH . ‘wp-admin/includes/plugin.php’;
}$all_plugins = get_plugins();
// Save the data to the error log so you can see what the array format is like.
error_log( print_r( $all_plugins, true ) );
echo “<b>You got ” . count($all_plugins) . ” plugins<br></b>”;foreach($all_plugins as $x => $val) {
echo “$x<br>”;
}?>`
- The topic ‘Code to see a list of your plugins’ is closed to new replies.