Changeset 2378624
- Timestamp:
- 09/10/2020 11:10:51 AM (6 years ago)
- Location:
- belcoio/trunk
- Files:
-
- 3 edited
-
belco.php (modified) (2 diffs)
-
connectors/woocommerce.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
belcoio/trunk/belco.php
r2378549 r2378624 2 2 /** 3 3 * @package Belco 4 * @version 0.9. 04 * @version 0.9.1 5 5 * 6 6 */ … … 9 9 Plugin URI: http://www.belco.io 10 10 Description: All-in-one customer service software for e-commerce 11 Version: 0.9. 011 Version: 0.9.1 12 12 Author: Belco B.V. 13 13 Author URI: http://www.belco.io -
belcoio/trunk/connectors/woocommerce.php
r2289859 r2378624 13 13 add_action('deleted_user', array($this, 'customer_deleted')); 14 14 15 add_filter('woocommerce_ api_query_args', array($this, 'api_order_search_custom_fields'), 20, 2);15 add_filter('woocommerce_rest_orders_prepare_object_query', array($this, 'api_order_search_custom_fields'), 20, 2); 16 16 } 17 17 … … 123 123 } 124 124 125 public function api_order_search_custom_fields($args, $request _args) {125 public function api_order_search_custom_fields($args, $request) { 126 126 global $wpdb; 127 127 128 if ( empty( $request_args['email'] ) ) { 128 $email = $request->get_param('email'); 129 130 if ( !$email ) { 129 131 return $args; 130 132 } … … 139 141 ( p1.meta_key = '_billing_email' AND p1.meta_value LIKE '%%%s%%' ) 140 142 ", 141 esc_attr( $ request_args['email'])143 esc_attr( $email ) 142 144 ) 143 145 ); -
belcoio/trunk/readme.txt
r2378549 r2378624 5 5 Requires at least: 3.9.1 6 6 Tested up to: 5.4 7 Stable tag: 0.9. 07 Stable tag: 0.9.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 45 45 46 46 == Changelog == 47 48 = 0.9.1 49 - WooCommerce Api v3 support for Belco 50 - Add email parameter to orders endpoint 47 51 48 52 = 0.9.0
Note: See TracChangeset
for help on using the changeset viewer.