Skip to content

Instantly share code, notes, and snippets.

@rockschtar
Created June 27, 2013 13:00
Show Gist options
  • Save rockschtar/5876193 to your computer and use it in GitHub Desktop.
Save rockschtar/5876193 to your computer and use it in GitHub Desktop.
WordPress: Plugin Root/Header
<?php
/*
Plugin Name: Plugin name
Plugin URI: http://www.example.com
Description: Bla Bla
Author: Stevie
Version: 0.5 Beta
Author URI: http://www.example.de
*/
define("CAPL_PLUGIN", plugin_basename(__FILE__));
define("CAPL_PLUGIN_DIR", plugin_dir_path(__FILE__));
define("CAPL_PLUGIN_URL", plugin_dir_url(__FILE__));
define("CAPL_PLUGIN_RELATIVE_DIR", dirname(plugin_basename(__FILE__)));
define("CAPL_PLUGIN_FILE", __FILE__);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment