rcp_get_upgrade_paths

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.