Skip to content

Instantly share code, notes, and snippets.

@eriktorsner
Created April 25, 2017 10:05
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 eriktorsner/ce5b096c079f3d23e38b5ae53b808c61 to your computer and use it in GitHub Desktop.
Save eriktorsner/ce5b096c079f3d23e38b5ae53b808c61 to your computer and use it in GitHub Desktop.
Snippet 2 from helloTestable.php
<?php
/**
* Hook up our plugin with WordPress
*/
public function init()
{
add_action('admin_notices', array($this, 'echoLyric'));
add_action('admin_head', array($this, 'echoCss'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment