Skip to content

Instantly share code, notes, and snippets.

@forsvunnet
Created January 25, 2014 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save forsvunnet/8614391 to your computer and use it in GitHub Desktop.
Save forsvunnet/8614391 to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: ${PLUGIN_NAME}
Plugin URI: http://www.barrykooij.com/${CLASS_NAME}
Description: ${PLUGIN_DESC}
Version: 1.0.0
Author: Barry Kooij
Author URI: http://www.barrykooij.com/
*/
if ( ! defined( '${CLASS_NAME}_PLUGIN_DIR' ) ) {
define( '${CLASS_NAME}_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( '${CLASS_NAME}_PLUGIN_FILE' ) ) {
define( '${CLASS_NAME}_PLUGIN_FILE', __FILE__ );
}
class ${CLASS_NAME} {
private function __construct() {
}
}
add_action( 'plugins_loaded', create_function( '', 'new ${CLASS_NAME}();' ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment