I was wondering, what’s the difference, and best filter/action to add rewrite rules? I used all but I still can’t say why should I use one or the other.
add_action('init', 'add_rewrite_rules'); // or:
add_action('generate_rewrite_rules', 'add_rewrite_rules'); // or:
add_filter('rewrite_rules_array','add_rewrite_rules');