rcp_get_content_subscription_levels()

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:
https://codeable.io/developers/restrict-content-pro/

rcp_get_content_subscription_levels( $post_id )

This function will return the subscription level(s) a given post is restricted to.

Parameters:

  • $post_id - ID of the post you'd like to get the required subscription levels for.

Possible return values:

  • false - No subscription level restrictions.
  • any - Restricted to any subscription level.
  • any-paid - Restricted to any paid subscription level.
  • (array) An array of subscription level IDs that the post is restricted to.
Powered by Zendesk