Home Forums Plugin Support WP User Frontend Pro Function to upgrade?

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 6 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1699

    ronilagin
    Participant
    Post count: 24

    Hello,

    I am going to be experimenting with creating a custom gateway, but I've brainstormed a backup in case I cannot figure that out, but the backup would require the functionality to run a function to upgrade a user.

    Is there a built in function that can be provided the user id and pack id and upgrade a user manually through a custom PHP script?

    #1700

    Tareq Hasan
    Keymaster
    Post count: 2831

    You can use the member function new_subscription of WPUF_Subscription class to upgrade a user package. It accepts the user_id and pack_id as parameter.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Function to upgrade?’ is closed to new replies.