PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Gravity Form & Expire Users Plugin

  1. I would like to get Gravity Form to insert a user meta field so that it corresponds to the Expire Users Plugin settings.

    This way each time a user renews their account I can reset their expire time.

    I notice these user meta fields:
    _expire_user_date
    _expire_user_expire
    _expire_user_settings

    it uses the following function to create information for these fields:
    '
    function user_register( $user_id ) {
    if ( isset( $_POST['expire_users'] ) && 'auto' == $_POST['expire_users'] ) {

    $expire_settings = $this->admin->settings->get_default_expire_settings();

    $expire_data = array(
    'expire_user_date_type' => $expire_settings['expire_user_date_type'],
    'expire_user_date_in_num' => $expire_settings['expire_user_date_in_num'],
    'expire_user_date_in_block' => $expire_settings['expire_user_date_in_block'],
    'expire_user_date_on_timestamp' => $expire_settings['expire_timestamp'],
    'expire_user_role' => $expire_settings['expire_user_role'],
    'expire_user_reset_password' => $expire_settings['expire_user_reset_password'],
    'expire_user_email' => $expire_settings['expire_user_email'],
    'expire_user_email_admin' => $expire_settings['expire_user_email_admin']
    );

    $user = new Expire_User( $user_id );
    $user->set_expire_data( $expire_data );
    $user->save_user();
    }
    }
    '
    Here is the output of the meta fields for a user:

    [_expire_user_date] => Array ( [0] => 1412182200 )
    [_expire_user_settings] => Array ( [0] => a:4:{s:15:"default_to_role";s:10:"subscriber";s:14:"reset_password";b:0;s:5:"email";b:1;s:11:"email_admin";b:1;} )
    [_expire_user_expired] => Array ( [0] => N )

    What I would like to do is use a date field to make the membership 1 year from the date they renew.

    Will the date field in Gravity form make the correct date format?

    It would be neat if the User registration add-on had an expire user feature, until then any help would be much appreciated.

    Posted 4 years ago on Monday June 24, 2013 | Permalink
  2. Richard Vav
    Administrator

    If you still require assistance with this please open a new support ticket or a priority support ticket if you are a developer license holder. Thank you.

    Posted 4 years ago on Sunday July 28, 2013 | Permalink

This topic has been resolved and has been closed to new replies.

Support Tickets

Open A New Support Ticket
 Open A New Priority Support Ticket *

* Developer license holders only