Skip to content

Instantly share code, notes, and snippets.

@thaboklass
Last active June 16, 2021 22:41
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/f2a78ad9c9ad322ede89844b18486596 to your computer and use it in GitHub Desktop.
Save thaboklass/f2a78ad9c9ad322ede89844b18486596 to your computer and use it in GitHub Desktop.
<?php
/**
* Add options for new activation
*
* This checks whether or not backend options that define the basic
* functionality have been added and if not, they are added
* with what have been determined as the most efficient defaults
*
* @param none
* @return none
*/
public function robber_baron_tv_add_options() {
if (!get_option('robber_baron_tv_email_address')) {
add_option('robber_baron_tv_email_address', '');
add_option('robber_baron_tv_connected', '');
add_option('robber_baron_tv_user_id', '');
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment