File tree 6 files changed +9
-9
lines changed 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 27
27
Query Order after this date. ISO 8601 format.
28
28
29
29
[--limit]
30
- Limit the total number of orders to process. Set to 1000 by default.
30
+ Limit the total number of orders to process. Set to PHP_INT_MAX by default.
31
31
32
32
[--perpage]
33
33
Limit the number of orders to process each time.
78
78
Query Order after this date. ISO 8601 format.
79
79
80
80
[--limit]
81
- Limit the total number of orders to process. Set to 1000 by default.
81
+ Limit the total number of orders to process. Set to PHP_INT_MAX by default.
82
82
83
83
[--perpage]
84
84
Limit the number of orders to process each time.
@@ -132,7 +132,7 @@ wp import_stripe_data_into_woopayments [--limit]
132
132
OPTIONS
133
133
134
134
[--limit]
135
- : Limit the total number of coupons to process. This won't count the sub codes. Default to 1000 .
135
+ : Limit the total number of coupons to process. This won't count the sub codes. Default to PHP_INT_MAX .
136
136
137
137
Example
138
138
wp import_stripe_data_into_woopayments --limit=1
@@ -168,7 +168,7 @@ wp import_stripe_data_into_woopayments [--limit]
168
168
OPTIONS
169
169
170
170
[--limit]
171
- : Limit the total number of coupons to process. This won't count the sub codes. Default to 1000 .
171
+ : Limit the total number of coupons to process. This won't count the sub codes. Default to PHP_INT_MAX .
172
172
173
173
[--cursor]
174
174
: The cursor of the last discount to start importing from
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class Migrator_CLI_Coupons {
10
10
*/
11
11
public function import ( $ assoc_args ) {
12
12
$ imported = 0 ;
13
- $ limit = isset ( $ assoc_args ['limit ' ] ) ? $ assoc_args ['limit ' ] : 1000 ;
13
+ $ limit = isset ( $ assoc_args ['limit ' ] ) ? $ assoc_args ['limit ' ] : PHP_INT_MAX ;
14
14
$ cursor = isset ( $ assoc_args ['cursor ' ] ) ? $ assoc_args ['cursor ' ] : '' ;
15
15
16
16
do {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public function fix_missing_order_tags( $assoc_args ) {
13
13
$ dry_run = isset ( $ assoc_args ['dry-run ' ] ) ? true : false ;
14
14
$ before = isset ( $ assoc_args ['before ' ] ) ? $ assoc_args ['before ' ] : null ;
15
15
$ after = isset ( $ assoc_args ['after ' ] ) ? $ assoc_args ['after ' ] : null ;
16
- $ limit = isset ( $ assoc_args ['limit ' ] ) ? $ assoc_args ['limit ' ] : 1000 ;
16
+ $ limit = isset ( $ assoc_args ['limit ' ] ) ? $ assoc_args ['limit ' ] : PHP_INT_MAX ;
17
17
$ perpage = isset ( $ assoc_args ['perpage ' ] ) ? $ assoc_args ['perpage ' ] : 50 ;
18
18
$ perpage = min ( $ perpage , $ limit );
19
19
$ next_link = isset ( $ assoc_args ['next ' ] ) ? $ assoc_args ['next ' ] : '' ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function migrate_orders( $assoc_args ) {
22
22
23
23
$ before = isset ( $ assoc_args ['before ' ] ) ? $ assoc_args ['before ' ] : null ;
24
24
$ after = isset ( $ assoc_args ['after ' ] ) ? $ assoc_args ['after ' ] : null ;
25
- $ limit = isset ( $ assoc_args ['limit ' ] ) ? $ assoc_args ['limit ' ] : 1000 ;
25
+ $ limit = isset ( $ assoc_args ['limit ' ] ) ? $ assoc_args ['limit ' ] : PHP_INT_MAX ;
26
26
$ perpage = isset ( $ assoc_args ['perpage ' ] ) ? $ assoc_args ['perpage ' ] : 250 ;
27
27
$ perpage = min ( $ perpage , $ limit );
28
28
$ next_link = isset ( $ assoc_args ['next ' ] ) ? $ assoc_args ['next ' ] : '' ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function import_stripe_data_into_woopayments( $assoc_args ) {
25
25
die ();
26
26
}
27
27
28
- $ limit = isset ( $ assoc_args ['limit ' ] ) ? $ assoc_args ['limit ' ] : 1000 ;
28
+ $ limit = isset ( $ assoc_args ['limit ' ] ) ? $ assoc_args ['limit ' ] : PHP_INT_MAX ;
29
29
$ perpage = min ( 100 , $ limit );
30
30
31
31
$ starting_after = '' ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function migrate_products( $assoc_args ) {
28
28
29
29
$ before = isset ( $ assoc_args ['before ' ] ) ? $ assoc_args ['before ' ] : null ;
30
30
$ after = isset ( $ assoc_args ['after ' ] ) ? $ assoc_args ['after ' ] : null ;
31
- $ limit = isset ( $ assoc_args ['limit ' ] ) ? $ assoc_args ['limit ' ] : 1000 ;
31
+ $ limit = isset ( $ assoc_args ['limit ' ] ) ? $ assoc_args ['limit ' ] : PHP_INT_MAX ;
32
32
$ perpage = isset ( $ assoc_args ['perpage ' ] ) ? $ assoc_args ['perpage ' ] : 50 ;
33
33
$ perpage = min ( $ perpage , $ limit );
34
34
$ next_link = isset ( $ assoc_args ['next ' ] ) ? $ assoc_args ['next ' ] : '' ;
You can’t perform that action at this time.
0 commit comments