Tribe Events filters & actions

So I’m just starting to outline a developers’ tutorial on the filters & action hooks in Modern Tribe’s fantastic The Events Calendar plugin for WordPress, and I thought, Hmmm, I wonder how many filters and hooks there are in the code. So, being a nerd, I ran the following commands1 on my little Ubuntu machine:

% wget
% unzip
% cd the-events-calendar
% find . -type f -exec grep apply_filters {} \; > filter-count.txt
% find . -type f -exec grep do_action {} \; >> filter-count.txt
% vi filter-count.txt

    :%s/.*apply_filters( '\([^']*\).*/\1/g
    :%s/.*do_action( '\([^']*\).*/\1/g

% sort -u filter-count.txt > unique-filters.txt
% wc -l unique-filters.txt

And what do you, a number popped out. According to my (very) rough guesstimation, there are 371 unique filters & hooks2 in The Events Calendar. Seems I have my work cut out for me.

  1. If you can think of a better way, I’d like to hear it. 
  2. Well, that start with tribe_, anyways.