/** * remove tags from post * * @param <type> $_post_id The post identifier */ public static function remove($_post_id) { $args = ['termusage_id' => $_post_id, 'termusage_foreign' => 'posts']; return \lib\db\termusages::remove($args); }
public static function set($_cats_id, $_post_id) { $args = ['term_id' => $_cats_id, 'termusage_id' => $_post_id, 'termusage_foreign' => 'posts']; return \lib\db\termusages::insert($args); }