Skip to content

Instantly share code, notes, and snippets.

@seedprod
Created April 26, 2016 18:50
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 seedprod/41933ba8d6032727fd734558033b010e to your computer and use it in GitHub Desktop.
Save seedprod/41933ba8d6032727fd734558033b010e to your computer and use it in GitHub Desktop.
<?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