• Resolved nasimnet

    (@nasimnet)


    Hi guys,

    I need send an Email to user when license key has been expired.
    Is this possible add new hook to “do_auto_key_expiry” function ?

    It will be great if you add email reminder feature to send an email to user some days before expiry date for this plugin.

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Thank you for your request. The plugin developers will investigate further your request.

    Regards

    Plugin Author mra13

    (@mra13)

    Please let me know which file and want line this proposed hook should go to and I will add it it.

    Thread Starter nasimnet

    (@nasimnet)

    Thanks for your response.

    file name : includes/slm-utility.php
    Line : 36

    What I need is something like this:
    Please add $license->id to action args

    
    if ($today_dt > $expire_dt) {
        //This key has reached the expiry. So expire this key.
        SLM_Debug_Logger::log_debug_st("This key (".$key.") has expired. Expiry date: ".$expiry_date.". Setting license key status to expired.");
        $data = array('lic_status' => 'expired');
        $where = array('id' => $license->id);
        $updated = $wpdb->update($tbl_name, $data, $where);
        
        do_action( 'ACTION_NAME', $license->id ); // Hook
    }
    

    Regards

    • This reply was modified 7 years, 9 months ago by nasimnet.
    Plugin Author mra13

    (@mra13)

    Thank you. This will be added in the next release.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘request: Adding Hook to after key expiry process’ is closed to new replies.