Wordpress: Show all active plugins


/ Published in: PHP
Save to your folder(s)

Show a list of active plugins on current site.
I use it for diplaying in ManageWP and transfer to documentation


Copy this code and paste it in your HTML
  1. function wpse_54742_active_site_plugins() {
  2. $the_plugs = get_option('active_plugins');
  3. foreach($the_plugs as $key => $value) {
  4. $string = explode('/',$value); // Folder name will be displayed
  5. echo $string[0] ."\n";
  6. }
  7. }
  8.  
  9. wpse_54742_active_site_plugins();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.