Posted By

ellegaarddk on 03/19/15


Tagged

php wordpress


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

delonnkoh
JeffSFO


Wordpress: Show all active plugins


 / Published in: PHP
 

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

  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
Posted By: on January 31, 2019

download best software to android root use app kingo or 360 for pc mac ios windows 10 8 1 7 xp computer site

You need to login to post a comment.