Created
March 29, 2017 17:24
-
-
Save ptasker/39577469255baabbfd433a140ebf6b3e to your computer and use it in GitHub Desktop.
Test plugin
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: Annoying Plugin | |
| Plugin URI: | |
| Description: This is not a plugin | |
| Author: Pete T | |
| Version: 1.0 | |
| Author URI: | |
| */ | |
| class annoying_plugin { | |
| public function __construct() { | |
| add_filter( 'admin_head', [ $this, 'foo' ] ); | |
| } | |
| public function foo(){ | |
| echo "foo"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment