xrat
1
With filters and the action “Assign tags” I can add tags. Is there a way to automatically remove tags from articles?
Usually, I like that articles come with tags. But 1 high volume feed tags all articles with “archive” which in this particular case is pointless because the feed is about music album releases. So I was wondering how to remove this tag.
e: typo fixed
fox
2
not in stock. you should be able to write a plugin to do this. filter actions are extensible.
vnab
3
If anybody’s still interested I have this tiny tiny plugin that deletes all tags (I don’t care for any of them). It’s invoked by my last filter rule.
<?php
class Remove_All_Tags extends Plugin {
private $host;
function about() {
return array(1.0,
"Remove all tags",
"vnab");
}
function init($host) {
$this->host = $host;
$host->add_hook($host::HOOK_ARTICLE_FILTER_ACTION, $this);
$host->add_filter_action($this, "Remove all tags", "Remove all tags");
}
function hook_article_filter_action($article, $action) {
$article["tags"] = array();
return $article;
}
function api_version() {
return 2;
}
}
?>
fox
4
btw there’s a filter action to ignore tags, has been added for some time now.