-
-
Save cirosantilli/8614395 to your computer and use it in GitHub Desktop.
This file contains 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
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