Created
November 13, 2015 19:02
-
-
Save DevinVinson/81db2a0251fc1d62b5e9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: Emergency Broadcast System | |
Author: Everyone | |
*/ | |
function ebs_header_message() { | |
echo '<div style="background:red;color:white">THIS IS BAD. COME BACK LATER</div>'; | |
} | |
add_action('wp_head', 'ebs_header_message'); | |
function ebs_content_message($content) { | |
$content .= 'Things are bad - Josh'; | |
return $content; | |
} | |
add_filter('the_content', 'ebs_content_message'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment