get_var( " SELECT DISTINCT count(p.ID) FROM {$wpdb->prefix}posts as p WHERE p.post_type = 'shop_order' AND p.post_date < '{$dateTime}' " ); return (int)$result; } public function getRawPrice($price, array $args = []) { $htmlPrice = $this->wcPrice($price, $args); return html_entity_decode(strip_tags($htmlPrice)); } }