php wordpress if class exists code example Example: wordpress check if class exists if(class_exists('dbinfo')){ //do something }