-
-
Save nutsandbolts/cae5d7cc937dd6d0a8d4 to your computer and use it in GitHub Desktop.
Embed a theme walkthrough video in the WordPress dashboard
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 | |
/* | |
Plugin Name: Nuts and Bolts Video Intro | |
Plugin URI: WEBSITE URL GOES HERE | |
Description: Adds a theme overview video to the dashboard homepage. To remove the video, simply deactivate and delete this plugin. The video will still be available via its direct YouTube URL if you need to access it. | |
Author: Nuts and Bolts Media, LLC | |
Version: 1.0 | |
Author URI: https://www.nutsandboltsmedia.com | |
License: GPL-2.0+ | |
License URI: http://www.gnu.org/licenses/gpl-2.0.txt | |
*/ | |
add_action('wp_dashboard_setup', 'nabm_dashboard_widgets'); | |
function nabm_dashboard_widgets() { | |
global $wp_meta_boxes; | |
wp_add_dashboard_widget('custom_help_widget', 'ENTER A WIDGET TITLE', 'nabm_dashboard_help'); | |
} | |
function nabm_dashboard_help() { | |
echo '<p>Need help? Contact Nuts and Bolts Media <a href="mailto:info@nutsandboltsmedia.com">here</a>.</p> | |
EMBED CODE GOES HERE | |
'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment