# subscription/1.9.5/includes/Admin/views/settings.php

Subscriptions for WooCommerce with Stripe Recurring Payments, version 1.9.5. 136 lines.

- Page: https://pluginprobe.com/plugins/subscription/1.9.5/code/includes/Admin/views/settings.php
- Raw: https://pluginprobe.com/plugins/subscription/1.9.5/raw/includes/Admin/views/settings.php
- Modified: 2026-03-30T08:58:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/subscription/1.9.5/code/includes/Admin/views/settings.php#L10-L20`.

```php
<?php
/**
 * Subscription settings admin view.
 *
 * @package SpringDevs\Subscription\Admin
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Add Tailwind CSS for styling.
subscrpt_include_tailwind_css();

// Add admin settings styles.
wp_enqueue_style( 'wp-subscription-admin-settings', SUBSCRPT_ASSETS . '/css/admin-settings.css', [], SUBSCRPT_VERSION );

// Add admin settings scripts.
wp_enqueue_script( 'wp-subscription-admin-settings', SUBSCRPT_ASSETS . '/js/admin-settings.js', [ 'jquery' ], SUBSCRPT_VERSION, true );

?>
<div class="wp-subscription-admin-content" style="max-width:1240px;margin:32px auto 0 auto">
	<div class="wp-subscription-admin-box wpsubs-tw-root">
		<h1 class="wp-heading-inline"><?php esc_html_e( 'Subscription Settings', 'subscription' ); ?></h1>
		<hr class="wp-header-end"><br/>

		<form method="post" action="options.php" class="border border-gray-200 rounded-lg p-5">
			<!-- Settings nonce and other requirements -->
			<?php settings_fields( 'wp_subscription_settings' ); ?>
			<?php do_settings_sections( 'wp_subscription_settings' ); ?>

			<!-- Settings Fields -->
			<?php
			foreach ( $settings_fields as $group_id => $group ) {
				foreach ( ( $group['fields'] ?? [] ) as $field ) {
					$field_type = $field['type'] ?? 'input';
					$field_data = $field['field_data'] ?? [];

					SpringDevs\Subscription\Admin\SettingsHelper::render_settings_field( $field_type, $field_data );

					echo wp_kses_post( '<div class="my-5 border-t border-gray-100"></div>' );
				}
			}
			?>

			<!-- Submit Button -->
			<div>
				<input 
					type="submit" 
					value="<?php esc_attr_e( 'Save changes', 'subscription' ); ?>" 
					class="button button-primary px-3! py-1! rounded-md!"
				/>
			</div>
		</form>
	</div>
</div>

<?php return; ?>

<?php
/**
 * TODO: Refactor this section later
 *
 * phpcs:disable
 */
?>
<!-- Pro Gimmicks -->
<?php if ( ! class_exists( 'Sdevs_Wc_Subscription_Pro' ) ) : ?>
	<!-- PRO Features (subtle, grayed out) -->
	<tr class="wp-subscription-pro-setting-row" style="opacity:0.55;pointer-events:none;">
		<th scope="row">
			<label><?php esc_html_e( 'Variable Product Options', 'subscription' ); ?></label>
		</th>
		<td>
			<input type="text" disabled placeholder="Available in PRO" style="width:220px;" />
			<p class="description">Set flexible options for variable subscription products <span style="color:#2196f3;font-weight:600;">PRO</span></p>
		</td>
	</tr>
	<tr class="wp-subscription-pro-setting-row" style="opacity:0.55;pointer-events:none;">
		<th scope="row">
			<label><?php esc_html_e( 'Delivery Schedule', 'subscription' ); ?></label>
		</th>
		<td>
			<select disabled><option><?php esc_html_e( 'Available in PRO', 'subscription' ); ?></option></select>
			<p class="description">Custom delivery intervals for subscriptions <span style="color:#2196f3;font-weight:600;">PRO</span></p>
		</td>
	</tr>
	<tr class="wp-subscription-pro-setting-row" style="opacity:0.55;pointer-events:none;">
		<th scope="row">
			<label><?php esc_html_e( 'Subscription History', 'subscription' ); ?></label>
		</th>
		<td>
			<input type="text" disabled placeholder="Available in PRO" style="width:220px;" />
			<p class="description">View detailed subscription change history <span style="color:#2196f3;font-weight:600;">PRO</span></p>
		</td>
	</tr>
	<tr class="wp-subscription-pro-setting-row" style="opacity:0.55;pointer-events:none;">
		<th scope="row">
			<label><?php esc_html_e( 'More Subscription Durations', 'subscription' ); ?></label>
		</th>
		<td>
			<input type="text" disabled placeholder="Available in PRO" style="width:220px;" />
			<p class="description">Offer more flexible/custom subscription periods <span style="color:#2196f3;font-weight:600;">PRO</span></p>
		</td>
	</tr>
	<tr class="wp-subscription-pro-setting-row" style="opacity:0.55;pointer-events:none;">
		<th scope="row">
			<label><?php esc_html_e( 'Sign Up Fee', 'subscription' ); ?></label>
		</th>
		<td>
			<input type="number" disabled placeholder="Available in PRO" style="width:120px;" />
			<p class="description">Charge a one-time sign up fee <span style="color:#2196f3;font-weight:600;">PRO</span></p>
		</td>
	</tr>
	<tr class="wp-subscription-pro-setting-row" style="opacity:0.55;pointer-events:none;">
		<th scope="row">
			<label><?php esc_html_e( 'Early Renewal', 'subscription' ); ?></label>
		</th>
		<td>
			<input class="wp-subscription-toggle" type="checkbox" disabled />
			<span class="wp-subscription-toggle-ui" aria-hidden="true"></span>
			<p class="description">Allow early renewal for subscriptions <span style="color:#2196f3;font-weight:600;">PRO</span></p>
		</td>
	</tr>
	<tr class="wp-subscription-pro-setting-row" style="opacity:0.55;pointer-events:none;">
		<th scope="row">
			<label><?php esc_html_e( 'Renewal Price', 'subscription' ); ?></label>
		</th>
		<td>
			<input type="number" disabled placeholder="Available in PRO" style="width:120px;" />
			<p class="description">Set a different price for renewals <span style="color:#2196f3;font-weight:600;">PRO</span></p>
		</td>
	</tr>
<?php endif; ?>

```
