Plugin Directory

Changeset 2723141


Ignore:
Timestamp:
05/13/2022 06:00:06 AM (4 years ago)
Author:
lalamove
Message:

release v1.0.5

Location:
lalamove
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • lalamove/tags/1.0.5/includes/class-lalamove-widget-actions.php

    r2661191 r2723141  
    1212if ( ! class_exists( 'Lalamove_Widget_Actions' ) ) :
    1313    class Lalamove_Widget_Actions {
     14
    1415
    1516        private static $instance;
     
    101102            echo '</div>';
    102103        }
     104
     105        public function multi_stop_order( $action ) {
     106            $actions['multi_stop_order'] = __( 'Send with Lalamove (Multi-stop Order)', 'woocommerce' );
     107            return $actions;
     108        }
     109
     110        public function multi_stop_order_action( $redirect_to, $action, $post_ids ) {
     111            if ( $action !== 'multi_stop_order' || empty( $post_ids ) ) {
     112                return $redirect_to;
     113            }
     114            return lalamove_get_current_admin_url() . '?page=Lalamove&sub-page=place-order&id=' . implode( ',', $post_ids );
     115        }
    103116    }
    104117endif;
  • lalamove/tags/1.0.5/lalamove.php

    r2676945 r2723141  
    44 * Plugin URI:        https://wordpress.org/plugins/lalamove
    55 * Description:       A 24/7 on-demand delivery app
    6  * Version:           1.0.4
     6 * Version:           1.0.5
    77 * Author:            partner.support@lalamove.com
    88 * Author URI:        https://lalamove.com/
     
    121121                add_action( 'woocommerce_shipping_init', 'lalamove_shipping_method' );
    122122                add_filter( 'woocommerce_shipping_methods', array( $this, 'add_shipping_method' ) );
     123                add_filter( 'bulk_actions-edit-shop_order', array( Lalamove_Widget_Actions::get_instance(), 'multi_stop_order' ) );
     124                add_filter( 'handle_bulk_actions-edit-shop_order', array( Lalamove_Widget_Actions::get_instance(), 'multi_stop_order_action' ), 10, 3 );
    123125            } else {
    124126                add_action( 'admin_notices', array( $this, 'notice_activate_wc' ) );
  • lalamove/tags/1.0.5/readme.txt

    r2676954 r2723141  
    66Tested up to: 5.8.2
    77Requires PHP: 7.0
    8 Stable tag: 1.0.4
     8Stable tag: 1.0.5
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    107107== Changelog ==
    108108
     109= 1.0.5 =
     110* Support multi-stop order
     111
    109112= 1.0.4 =
    110113* Added guideline for troubleshooting
  • lalamove/trunk/includes/class-lalamove-widget-actions.php

    r2661191 r2723141  
    1212if ( ! class_exists( 'Lalamove_Widget_Actions' ) ) :
    1313    class Lalamove_Widget_Actions {
     14
    1415
    1516        private static $instance;
     
    101102            echo '</div>';
    102103        }
     104
     105        public function multi_stop_order( $action ) {
     106            $actions['multi_stop_order'] = __( 'Send with Lalamove (Multi-stop Order)', 'woocommerce' );
     107            return $actions;
     108        }
     109
     110        public function multi_stop_order_action( $redirect_to, $action, $post_ids ) {
     111            if ( $action !== 'multi_stop_order' || empty( $post_ids ) ) {
     112                return $redirect_to;
     113            }
     114            return lalamove_get_current_admin_url() . '?page=Lalamove&sub-page=place-order&id=' . implode( ',', $post_ids );
     115        }
    103116    }
    104117endif;
  • lalamove/trunk/lalamove.php

    r2676945 r2723141  
    44 * Plugin URI:        https://wordpress.org/plugins/lalamove
    55 * Description:       A 24/7 on-demand delivery app
    6  * Version:           1.0.4
     6 * Version:           1.0.5
    77 * Author:            partner.support@lalamove.com
    88 * Author URI:        https://lalamove.com/
     
    121121                add_action( 'woocommerce_shipping_init', 'lalamove_shipping_method' );
    122122                add_filter( 'woocommerce_shipping_methods', array( $this, 'add_shipping_method' ) );
     123                add_filter( 'bulk_actions-edit-shop_order', array( Lalamove_Widget_Actions::get_instance(), 'multi_stop_order' ) );
     124                add_filter( 'handle_bulk_actions-edit-shop_order', array( Lalamove_Widget_Actions::get_instance(), 'multi_stop_order_action' ), 10, 3 );
    123125            } else {
    124126                add_action( 'admin_notices', array( $this, 'notice_activate_wc' ) );
  • lalamove/trunk/readme.txt

    r2676954 r2723141  
    66Tested up to: 5.8.2
    77Requires PHP: 7.0
    8 Stable tag: 1.0.4
     8Stable tag: 1.0.5
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    107107== Changelog ==
    108108
     109= 1.0.5 =
     110* Support multi-stop order
     111
    109112= 1.0.4 =
    110113* Added guideline for troubleshooting
Note: See TracChangeset for help on using the changeset viewer.