Plugin Directory

Changeset 2378624


Ignore:
Timestamp:
09/10/2020 11:10:51 AM (6 years ago)
Author:
belco
Message:

Version bump

Location:
belcoio/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • belcoio/trunk/belco.php

    r2378549 r2378624  
    22/**
    33 * @package Belco
    4  * @version 0.9.0
     4 * @version 0.9.1
    55 *
    66 */
     
    99Plugin URI: http://www.belco.io
    1010Description: All-in-one customer service software for e-commerce
    11 Version: 0.9.0
     11Version: 0.9.1
    1212Author: Belco B.V.
    1313Author URI: http://www.belco.io
  • belcoio/trunk/connectors/woocommerce.php

    r2289859 r2378624  
    1313    add_action('deleted_user', array($this, 'customer_deleted'));
    1414
    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);
    1616  }
    1717
     
    123123  }
    124124
    125   public function api_order_search_custom_fields($args, $request_args) {
     125  public function api_order_search_custom_fields($args, $request) {
    126126    global $wpdb;
    127127
    128         if ( empty( $request_args['email'] ) ) {
     128    $email = $request->get_param('email');
     129
     130        if ( !$email ) {
    129131            return $args;
    130132        }
     
    139141                    ( p1.meta_key = '_billing_email' AND p1.meta_value LIKE '%%%s%%' )
    140142                ",
    141                 esc_attr( $request_args['email'] )
     143                esc_attr( $email )
    142144            )
    143145        );
  • belcoio/trunk/readme.txt

    r2378549 r2378624  
    55Requires at least: 3.9.1
    66Tested up to: 5.4
    7 Stable tag: 0.9.0
     7Stable tag: 0.9.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4545
    4646== Changelog ==
     47
     48= 0.9.1
     49- WooCommerce Api v3 support for Belco
     50- Add email parameter to orders endpoint
    4751
    4852= 0.9.0
Note: See TracChangeset for help on using the changeset viewer.