Skip to content

Commit

Permalink
Add plugin path in a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
julien731 committed Jan 2, 2014
1 parent 6c4cbdb commit cf5d760
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions universal-contact-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
die;
}

/*----------------------------------------------------------------------------*
* Define plugin path and URI
*----------------------------------------------------------------------------*/
define( 'UCF_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );

/*----------------------------------------------------------------------------*
* Public-Facing Functionality
*----------------------------------------------------------------------------*/
Expand All @@ -42,11 +47,6 @@
/*
* Register hooks that are fired when the plugin is activated or deactivated.
* When the plugin is deleted, the uninstall.php file is loaded.
*
* @TODO:
*
* - replace Plugin_Name with the name of the class defined in
* `class-plugin-name.php`
*/
register_activation_hook( __FILE__, array( 'Universal_Contact_Form', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Universal_Contact_Form', 'deactivate' ) );
Expand All @@ -63,13 +63,7 @@
* Dashboard and Administrative Functionality
*----------------------------------------------------------------------------*/

/*
* @TODO:
*
* - replace `class-plugin-admin.php` with the name of the plugin's admin file
* - replace Plugin_Name_Admin with the name of the class defined in
* `class-plugin-name-admin.php`
*
/**
* If you want to include Ajax within the dashboard, change the following
* conditional to:
*
Expand Down

0 comments on commit cf5d760

Please sign in to comment.