updated options to make them not automatically loaded when added

This commit is contained in:
asus
2024-03-25 15:16:19 +01:00
parent 6ec621a20b
commit 4036f4300d
10 changed files with 168 additions and 44 deletions

View File

@@ -0,0 +1,12 @@
<!-- https://developer.wordpress.org/reference/hooks/admin_post_action/ -->
<form method="POST" action="<?php echo admin_url( 'admin-post.php' ); ?>">
<input type="hidden" name="action" value="<?php echo $admin_post_paypal; ?>">
<?php wp_nonce_field($nonce_paypal['_action'], $nonce_paypal['_name']); ?>
<div class="input_wrapper">
<input type="radio" id="sandbox" name="<?php echo $sandbox_live['_name']; ?>" value="<?php echo $sandbox_live['sandbox']; ?>" checked />
<label for="sandbox">sandbox</label>
<input type="radio" id="live" name="<?php echo $sandbox_live['_name']; ?>" value="<?php echo $sandbox_live['live']; ?>" />
<label for="live">live</label>
</div>
<input type="submit" value="send"/>
</form>