Best practices for multiple Custom Feeds functions

Here’s what I do to keep my RSS Templates together though depending on your version of PHP this may not work but it’s pretty clean. You can add multiple feeds here.

/** Register Our RSS Feeds **/
function my_rss_templates() {
    add_feed( 'feedname2', function(){
        get_template_part('rss', 'feedname2'');
    });

    // Rinse and Repeat...
}
add_action( 'after_setup_theme', 'my_rss_templates' );

PHP has a name for the above method, (calling a function like that) but off the top of my head I can’t put a name to it.

Anonymous Function Call – Only available in PHP 5.3 and up.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)