A weird issue, I thought it would be easy to do this:
function doctype() {
// remove "frenchfries" from suggested tags
if($this->template=='ask' && qa_get_logged_in_level() >= QA_USER_LEVEL_ADMIN) {
$suggesttags = $this->content['script_var']['qa_tags_complete'];
$suggesttags = str_replace('frenchfries', '', $suggesttags);
$this->content['script_var']['qa_tags_complete'] = $suggesttags;
}
// default call
qa_html_theme_base::doctype();
}
The qa_tags_complete get modified, but frontend the tags are still the same!
It seems that the tags are processed before the advanced theme, so changing the field happens after they have been set.