| 1 |
<?php |
| 2 |
/** |
| 3 |
* This is a file to run this class for testing. |
| 4 |
* |
| 5 |
* @wordpress-plugin |
| 6 |
* Plugin Name: AyeCode Deactivation Survey Testing |
| 7 |
* Description: If you see this as a plugin something has gone wrong. |
| 8 |
* Version: 1.0.7 |
| 9 |
* Author: AyeCode |
| 10 |
* Author URI: https://ayecode.io |
| 11 |
* Text Domain: ayecode-ds |
| 12 |
* Domain Path: /languages |
| 13 |
* Requires at least: 4.2 |
| 14 |
* Tested up to: 5.8 |
| 15 |
*/ |
| 16 |
|
| 17 |
if ( ! defined( 'ABSPATH' ) ) { |
| 18 |
exit; |
| 19 |
} |
| 20 |
|
| 21 |
if ( ! class_exists( 'AyeCode_Deactivation_Survey' ) ) { |
| 22 |
// include the class if needed |
| 23 |
include_once( dirname( __FILE__ ) . "/wp-deactivation-survey.php" ); |
| 24 |
} |
| 25 |
|
| 26 |
|
| 27 |
//add_filter('ayecode_deactivation_survey_plugins', function($plugins) { |
| 28 |
// |
| 29 |
// $plugins[] = (object)array( |
| 30 |
// 'slug' => 'ayecode-deactivation-survey-testing', |
| 31 |
// 'version' => '1.0.0' |
| 32 |
// ); |
| 33 |
// |
| 34 |
// return $plugins; |
| 35 |
// |
| 36 |
//}); |
| 37 |
|
| 38 |
AyeCode_Deactivation_Survey::instance(array( |
| 39 |
'slug' => 'ayecode-deactivation-survey-testing', |
| 40 |
'version' => '1.0.0' |
| 41 |
)); |