Skip to main content

Filter: daymark_subscription_friends_roles

Filters the WordPress roles that count as a Friends-plugin relationship when find_friend_user() matches a site URL to a user.

Friends stores each person you follow as a WordPress user in one of its own roles (subscription in current versions; older versions also used friend, acquaintance, and the request roles). Without this restriction any account on the site, including an Author's or Contributor's, could set its own profile website to another site's URL and be matched first, which shadows a real friend and leaves that subscription empty.

Parameters​

NameTypeDescription
$rolesstring[]Role slugs.

Since​

  • 0.18.0

Source​

Defined in includes/sources/class-subscription-source-friends.php at line 436