WordPress Check If Class Exists

if(class_exists('dbinfo')){
 //do something
 }

Leave a Comment