Note: This is part of the developer docs and is considered custom code.
Unfortunately, we cannot provide support for custom code at this time as we do not have the additional resources that would be necessary to provide support for custom code.
If you need assistance with this, please reach out to our list of consultants for further assistance:
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.