From e13471e32e105d4f329c899c9202846720f70624 Mon Sep 17 00:00:00 2001 From: Byron Watts Date: Thu, 5 May 2016 23:31:26 -0500 Subject: [PATCH] Update settings.php This is part 2 of 3 changes required to add License Term as a 'global' setting in edd-software-license-manager. --- includes/settings.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/includes/settings.php b/includes/settings.php index 67d4004..dff2b85 100644 --- a/includes/settings.php +++ b/includes/settings.php @@ -40,6 +40,21 @@ function edd_slm_settings( $settings ) { 'type' => 'text', 'std' => '' ), + array( + 'id' => 'edd_slm_api_license_term', + 'name' => __( 'License Term', 'edd-slm' ), + 'desc' => __( 'How long the license is valid', 'edd-slm' ), + 'type' => 'select', + 'options' => array ( '0000-00-00' => __('Forever', 'edd-slm'), + 730 => __('Two Years', 'edd-slm'), + 365 => __('One Year', 'edd-slm'), + 180 => __('Six Months', 'edd-slm'), + 90 => __('90 Days', 'edd-slm'), + 60 => __('60 Days', 'edd-slm'), + 30 => __('30 Days', 'edd-slm'), + ) + + ), array( 'id' => 'edd_slm_debug', 'name' => __( 'Enable Debug', 'edd-slm' ), @@ -85,4 +100,4 @@ function edd_slm_api_validation() { } return true; -} \ No newline at end of file +}