| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | <?php |
| 2 | + | |
| 2 | 3 | namespace Hurrytimer; |
| 3 | 4 | |
| 4 | 5 | /** |
| 5 | 6 | * This class is used to store all plugin's constants. |
| @@ -10,8 +11,9 @@ | ||
| 10 | 11 | { |
| 11 | 12 | // Modes. |
| 12 | 13 | const MODE_REGULAR = 1; |
| 13 | 14 | const MODE_EVERGREEN = 2; |
| 15 | + const MODE_RECURRING = 3; | |
| 14 | 16 | |
| 15 | 17 | // WC single product positions. |
| 16 | 18 | const WC_POSITION_ABOVE_TITLE = 2.3; |
| 17 | 19 | const WC_POSITION_BELOW_TITLE = 9.3; |
| @@ -55,5 +57,14 @@ | ||
| 55 | 57 | const WC_ON_BACKORDER = 'onbackorder'; |
| 56 | 58 | |
| 57 | 59 | const YES = "yes"; |
| 58 | 60 | const NO = "no"; |
| 61 | + | |
| 62 | + const RECURRING_END_NEVER = 1; | |
| 63 | + const RECURRING_END_OCCURRENCES = 2; | |
| 64 | + const RECURRING_END_TIME = 3; | |
| 65 | + | |
| 66 | + const RECURRING_MINUTELY = 'minutely'; | |
| 67 | + const RECURRING_HOURLY = 'hourly'; | |
| 68 | + const RECURRING_DAILY = 'daily'; | |
| 69 | + const RECURRING_WEEKLY = 'weekly'; | |
| 59 | 70 | } |