Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
pmpromrss_feeds filter example
* PMPro RSS Extra Feeds Example
* Extra feeds format:
* $feeds["Label"] = Feed URL
* learn more about feed URLs at
function my_pmpromrss_feeds($feeds) {
//recent posts by current user
global $current_user;
$feeds['My Recent Posts'] = pmpromrss_url(home_url('/author/' . $current_user->user_login . '/feed/'));
//recent posts from "members" category
$feeds['Members Feed'] = pmpromrss_url(home_url('/category/members/feed'));
return $feeds;
add_action('pmpromrss_feeds', 'my_pmpromrss_feeds');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.