Skip to content

Instantly share code, notes, and snippets.

@cirosantilli
Forked from forsvunnet/WP: Plugin template.php
Created January 25, 2014 10:21
Show Gist options
  • Save cirosantilli/8614395 to your computer and use it in GitHub Desktop.
Save cirosantilli/8614395 to your computer and use it in GitHub Desktop.
asdf
<?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