Created
June 17, 2021 11:31
-
-
Save thaboklass/2210651a17e9b92b15524f33464789dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Outputs pertinent nonces, actions and options for | |
// the section | |
settings_fields('robber_baron_tv_settings'); | |
// Renders the setting sections added to the page | |
// 'Configuration Settings' | |
do_settings_sections('robber-baron-tv-configuration'); | |
// Renders a submit button that saves all of the options | |
// pertaining to the settings fields | |
if(array_key_exists('settings-updated', $_REQUEST) && $_REQUEST['settings-updated']) { | |
?> | |
<div id="robber_baron_tv_connection_complete"> | |
<p><b>Your connection request was sent. Please refresh the page to see if the connection has been enabled.</b></p> | |
</div> | |
<?php | |
} else { | |
submit_button('Connect To RBTV'); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment