rcp_get_post_ids_assigned_to_restricted_terms()

Returns an array of all post IDs that are assigned to a restricted taxonomy term. This does not include posts that may have been restricted via the "Restrict this content" meta box. For that, see rcp_get_restricted_post_ids().

The return value is saved in a transient for one day to help with performance.