Skip to content

Instantly share code, notes, and snippets.

Created August 22, 2012 22:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Plugin Name: Plugin Test
Plugin URI:
Description: Plugin Test for WP bug #21602
Version: 1.0.0
Author: Scott Reed
Author URI:
Text Domain: plugintest
if(defined("ABSPATH")) {
register_activation_hook(__FILE__, "enable_plugintest");
register_deactivation_hook(__FILE__, "disable_plugintest");
$plugintest = new PluginTest;
class PluginTest {
const VERSION = "1.0.0";
const WP_MIN = "3.0.0";
const NSPACE = "_plugintest_";
function __construct() {
private function bind_hooks() {
add_action('wp', array(&$this, 'post_process'));
function post_process() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment