• We have added expiry options filter since Temporary Login Without Password 1.5.11.

    One can add custom expiry option with the help of following code.

    add_filter( 'tlwp_expiry_options', 'add_tlwp_expiry_option', 10, 1);
    
    function add_tlwp_expiry_option( $options ) {
    
        $options['5_minutes'] = array(
    
            'label' => __('5 Minutes', 'text-domain'),
            'timestamp' => MINUTE_IN_SECONDS * 5,
            'order' => 1 // dropdown options will be sort with this number
    
        );
    
        return $options;
    
    }
  • The topic ‘Additional Expiry Option’ is closed to new replies.