rcp_get_upgrade_paths

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/

This filter was deprecated in version 3.0. Use rcp_get_membership_upgrade_paths instead.

Filters the subscription level upgrades that are available to a user.

Parameters:

  • $upgrade_paths (array) - Array of subscription level objects that the user is able to upgrade or downgrade to. If the user has an existing active subscription it should not be included in this array.
  • $user_id (int) - ID of the user being checked.
Powered by Zendesk