• How do I make a role expire after after a set condition is met or after a number of days, then the user role reverts to default,

Viewing 1 replies (of 1 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    URE does not include such feature. You have to use custom PHP code.

    I think it’s more effective to grant user a default role instead of modifying the extended one.
    Look at the wp-includes/class-wp-user.php’s class WP_User and its methods:
    add_role(), remove_role(), set_role().

Viewing 1 replies (of 1 total)

The topic ‘Expire a role conditionally’ is closed to new replies.