Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thaboklass/2210651a17e9b92b15524f33464789dc to your computer and use it in GitHub Desktop.
Save thaboklass/2210651a17e9b92b15524f33464789dc to your computer and use it in GitHub Desktop.
<?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