-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change save data approach and minor improvement
- Loading branch information
1 parent
e028cca
commit 785c9c6
Showing
11 changed files
with
96 additions
and
216 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
/** | ||
* @link https://affili.ir | ||
* @since 1.0.0 | ||
* @package AffiliWCTracker | ||
* | ||
* Plugin Name: Affili Plugin | ||
* Plugin URI: https://github.com/affili-ir/wordpress | ||
* Description: The WordPress plugin for Affili's merchants. | ||
* Version: 2.0.0 | ||
* Author: Affili IR | ||
* Author URI: https://affili.ir | ||
* License: GPLv2 or later | ||
* License URI: https://github.com/affili-ir/wordpress/blob/master/LICENSE | ||
* Text Domain: affili_wc_tracker | ||
* Domain Path: /languages | ||
*/ | ||
|
||
if( !defined('ABSPATH') ) { | ||
exit; | ||
} | ||
|
||
if (!defined('AFFILI_WC_TRACKER_FILE_DIR')) { | ||
define('AFFILI_WC_TRACKER_FILE_DIR', __FILE__); | ||
} | ||
|
||
if (!defined('AFFILI_WC_TRACKER_PLUGIN_DIR')) { | ||
define('AFFILI_WC_TRACKER_PLUGIN_DIR', plugin_dir_path(__FILE__)); | ||
} | ||
|
||
if (!defined('AFFILI_WC_TRACKER_BASENAME')) { | ||
define('AFFILI_WC_TRACKER_BASENAME', plugin_basename(AFFILI_WC_TRACKER_PLUGIN_DIR)); | ||
} | ||
|
||
include_once __DIR__.'/classes/Action.php'; | ||
include_once __DIR__.'/classes/Installer.php'; | ||
|
||
register_activation_hook(AFFILI_WC_TRACKER_FILE_DIR, ['AffiliWCTracker\Installer', 'activation']); | ||
register_deactivation_hook(AFFILI_WC_TRACKER_FILE_DIR, ['AffiliWCTracker\Installer', 'deactivation']); | ||
|
||
AffiliWCTracker\Action::factory(); |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.