includes/api/class-wc-rest-taxes-controller.php 1 location
|
@@ 197-201 (lines=5) @@
|
194 |
|
$prepared_args['include'] = $request['include']; |
195 |
|
$prepared_args['order'] = $request['order']; |
196 |
|
$prepared_args['number'] = $request['per_page']; |
197 |
|
if ( ! empty( $request['offset'] ) ) { |
198 |
|
$prepared_args['offset'] = $request['offset']; |
199 |
|
} else { |
200 |
|
$prepared_args['offset'] = ( $request['page'] - 1 ) * $prepared_args['number']; |
201 |
|
} |
202 |
|
$orderby_possibles = array( |
203 |
|
'id' => 'tax_rate_id', |
204 |
|
'order' => 'tax_rate_order', |
includes/abstracts/abstract-wc-rest-terms-controller.php 1 location
|
@@ 257-261 (lines=5) @@
|
254 |
|
'slug' => $request['slug'], |
255 |
|
); |
256 |
|
|
257 |
|
if ( ! empty( $request['offset'] ) ) { |
258 |
|
$prepared_args['offset'] = $request['offset']; |
259 |
|
} else { |
260 |
|
$prepared_args['offset'] = ( $request['page'] - 1 ) * $prepared_args['number']; |
261 |
|
} |
262 |
|
|
263 |
|
$taxonomy_obj = get_taxonomy( $taxonomy ); |
264 |
|
|
includes/api/class-wc-rest-customers-controller.php 1 location
|
@@ 212-216 (lines=5) @@
|
209 |
|
$prepared_args['include'] = $request['include']; |
210 |
|
$prepared_args['order'] = $request['order']; |
211 |
|
$prepared_args['number'] = $request['per_page']; |
212 |
|
if ( ! empty( $request['offset'] ) ) { |
213 |
|
$prepared_args['offset'] = $request['offset']; |
214 |
|
} else { |
215 |
|
$prepared_args['offset'] = ( $request['page'] - 1 ) * $prepared_args['number']; |
216 |
|
} |
217 |
|
$orderby_possibles = array( |
218 |
|
'id' => 'ID', |
219 |
|
'include' => 'include', |