rcp_restricted_message

Filters the restricted content message that gets shown on a post when the current user doesn't have access.

Parameters:

  • $message (string) - The free or paid restriction message (depending on the post). This will be the message entered in Restrict > Settings > General, or the default such as, "This content is restricted to subscribers".