includes/api/legacy/v1/class-wc-api-customers.php 1 location
|
@@ 410-417 (lines=8) @@
|
| 407 |
|
* @since 2.1 |
| 408 |
|
* @param WP_User_Query $query |
| 409 |
|
*/ |
| 410 |
|
public function modify_user_query( $query ) { |
| 411 |
|
|
| 412 |
|
if ( $this->created_at_min ) |
| 413 |
|
$query->query_where .= sprintf( " AND user_registered >= STR_TO_DATE( '%s', '%%Y-%%m-%%d %%h:%%i:%%s' )", esc_sql( $this->created_at_min ) ); |
| 414 |
|
|
| 415 |
|
if ( $this->created_at_max ) |
| 416 |
|
$query->query_where .= sprintf( " AND user_registered <= STR_TO_DATE( '%s', '%%Y-%%m-%%d %%h:%%i:%%s' )", esc_sql( $this->created_at_max ) ); |
| 417 |
|
} |
| 418 |
|
|
| 419 |
|
/** |
| 420 |
|
* Wrapper for @see get_avatar() which doesn't simply return |
includes/api/legacy/v2/class-wc-api-customers.php 1 location
|
@@ 671-680 (lines=10) @@
|
| 668 |
|
* @since 2.1 |
| 669 |
|
* @param WP_User_Query $query |
| 670 |
|
*/ |
| 671 |
|
public function modify_user_query( $query ) { |
| 672 |
|
|
| 673 |
|
if ( $this->created_at_min ) { |
| 674 |
|
$query->query_where .= sprintf( " AND user_registered >= STR_TO_DATE( '%s', '%%Y-%%m-%%d %%H:%%i:%%s' )", esc_sql( $this->created_at_min ) ); |
| 675 |
|
} |
| 676 |
|
|
| 677 |
|
if ( $this->created_at_max ) { |
| 678 |
|
$query->query_where .= sprintf( " AND user_registered <= STR_TO_DATE( '%s', '%%Y-%%m-%%d %%H:%%i:%%s' )", esc_sql( $this->created_at_max ) ); |
| 679 |
|
} |
| 680 |
|
} |
| 681 |
|
|
| 682 |
|
/** |
| 683 |
|
* Wrapper for @see get_avatar() which doesn't simply return |
includes/api/legacy/v3/class-wc-api-customers.php 1 location
|
@@ 660-669 (lines=10) @@
|
| 657 |
|
* @since 2.1 |
| 658 |
|
* @param WP_User_Query $query |
| 659 |
|
*/ |
| 660 |
|
public function modify_user_query( $query ) { |
| 661 |
|
|
| 662 |
|
if ( $this->created_at_min ) { |
| 663 |
|
$query->query_where .= sprintf( " AND user_registered >= STR_TO_DATE( '%s', '%%Y-%%m-%%d %%H:%%i:%%s' )", esc_sql( $this->created_at_min ) ); |
| 664 |
|
} |
| 665 |
|
|
| 666 |
|
if ( $this->created_at_max ) { |
| 667 |
|
$query->query_where .= sprintf( " AND user_registered <= STR_TO_DATE( '%s', '%%Y-%%m-%%d %%H:%%i:%%s' )", esc_sql( $this->created_at_max ) ); |
| 668 |
|
} |
| 669 |
|
} |
| 670 |
|
|
| 671 |
|
/** |
| 672 |
|
* Wrapper for @see get_avatar() which doesn't simply return |