wpdb->comments."` WHERE comment_type = 'pingback';"; $comments = $this->query($clean); $this->register_output(sprintf(_n('%d pingback deleted', '%d pingbacks deleted', $comments, 'wp-optimize'), number_format_i18n($comments))); } public function get_info() { $sql = "SELECT COUNT(*) FROM `".$this->wpdb->comments."` WHERE comment_type='pingback';"; $comments = $this->wpdb->get_var($sql); if (!$comments == NULL || !$comments == 0) { $message = sprintf(_n('%d Pingback found', '%d Pingbacks found', $comments, 'wp-optimize'), number_format_i18n($comments)); } else { $message = __('No pingbacks found', 'wp-optimize'); } $this->register_output($message); } public function settings_label() { return __('Remove pingbacks', 'wp-optimize'); } }