function pl_all global wpdb;count=0; count=wpdb-get_varSELECT COUNT FROM wpdb-comments; returncount;
function pl_all(){ global $wpdb; $count = 0; $count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments"); return $count; }
原文地址: http://www.cveoy.top/t/topic/hZYm 著作权归作者所有。请勿转载和采集!