Created
April 26, 2016 18:50
-
-
Save seedprod/41933ba8d6032727fd734558033b010e 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 | |
add_action( 'admin_menu', 'seed_cspv5_firstrun_nag' ); | |
function seed_cspv5_firstrun_nag(){ | |
update_option('seed_cspv5_per', 'lp'); | |
update_option('seed_cspv5_a', true); | |
$msg = '<h2>Here\'s a quick video walk through to get you started. </h2><iframe width="560" height="315" src="https://www.youtube.com/embed/aMSPV4iY6Tc?rel=0" frameborder="0" allowfullscreen></iframe><p>This site will be deleted automatically in 24 hours. Got a question? Use the Question Icon in the bottom right of the screen.</p>'; | |
if(isset($_GET['firstrun'])){ | |
add_settings_error( | |
null, | |
'seed_cspv5_api_nag', | |
$msg, | |
'updated' | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment