Adding filter and hook for subtotals

Signed-off-by: Zane M. Kolnik <zanematthew@gmail.com>