Is there any way to get all activated plugin list in wordpress codex .
i used this
get_option('active_plugins');
this return the plugin file path. I want the name. Because sometimes file name is different with the actual plugin name.
I got the answer
$apl=get_option('active_plugins');
$plugins=get_plugins();
$activated_plugins=array();
foreach ($apl as $p){
if(isset($plugins[$p])){
array_push($activated_plugins, $plugins[$p]);
}
}
//This is the $activated_plugins information
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With