Skip to content

Instantly share code, notes, and snippets.

@justinshreve
Created May 31, 2018 17:01
Show Gist options
  • Save justinshreve/25392f3bb22492731d056a1dbc0e786f to your computer and use it in GitHub Desktop.
Save justinshreve/25392f3bb22492731d056a1dbc0e786f to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: Add Test Notice
Description: Adds a test notice.
Author: WooCommerce
Version: 1.0
*/
function test_add_notice() { ?>
<div class="notice notice-warning is-dismissible">
<p>
<strong>Testing notice.</strong>
</p>
</div>
<?php }
add_action( 'admin_notices', 'test_add_notice' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment