/** * get phrases from db */ public function get_phrases() { $sql = "SELECT `phrase_key`, `phrase_value` FROM `" . $this->phrases . "`;"; $phrases = $this->db->get_results($sql, ARRAY_A); $tmp_phrases = array(); foreach ($phrases as $phrase) { if (!is_array($phrase)) { $phrase = stripslashes($phrase); } $tmp_phrases[$phrase['phrase_key']] = WC_Helper::init_phrase_key_value($phrase); } return $tmp_phrases; }