Skip to content

Instantly share code, notes, and snippets.

@aristath
Created June 5, 2013 17:00
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 aristath/5715483 to your computer and use it in GitHub Desktop.
Save aristath/5715483 to your computer and use it in GitHub Desktop.
<?php
function adding_my_custom_options() {
if ( !get_option( 'smtp_host' ) )
add_option( 'smtp_host', 'smtpcorptest.com', '', 'yes' );
if ( !get_option( 'mail_from_name' ) )
add_option( 'mail_from_name', 'crazyname', '', 'yes' );
if ( !get_option( 'smtp_from' ) )
add_option( 'smtp_from', 'crazyemail', '', 'yes' );
}
add_action( 'init', 'adding_my_custom_options' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment