Changeset 2723141
- Timestamp:
- 05/13/2022 06:00:06 AM (4 years ago)
- Location:
- lalamove
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.5 (copied) (copied from lalamove/trunk)
-
tags/1.0.5/includes/class-lalamove-widget-actions.php (modified) (2 diffs)
-
tags/1.0.5/lalamove.php (modified) (2 diffs)
-
tags/1.0.5/readme.txt (modified) (2 diffs)
-
trunk/includes/class-lalamove-widget-actions.php (modified) (2 diffs)
-
trunk/lalamove.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lalamove/tags/1.0.5/includes/class-lalamove-widget-actions.php
r2661191 r2723141 12 12 if ( ! class_exists( 'Lalamove_Widget_Actions' ) ) : 13 13 class Lalamove_Widget_Actions { 14 14 15 15 16 private static $instance; … … 101 102 echo '</div>'; 102 103 } 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 } 103 116 } 104 117 endif; -
lalamove/tags/1.0.5/lalamove.php
r2676945 r2723141 4 4 * Plugin URI: https://wordpress.org/plugins/lalamove 5 5 * Description: A 24/7 on-demand delivery app 6 * Version: 1.0. 46 * Version: 1.0.5 7 7 * Author: partner.support@lalamove.com 8 8 * Author URI: https://lalamove.com/ … … 121 121 add_action( 'woocommerce_shipping_init', 'lalamove_shipping_method' ); 122 122 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 ); 123 125 } else { 124 126 add_action( 'admin_notices', array( $this, 'notice_activate_wc' ) ); -
lalamove/tags/1.0.5/readme.txt
r2676954 r2723141 6 6 Tested up to: 5.8.2 7 7 Requires PHP: 7.0 8 Stable tag: 1.0. 48 Stable tag: 1.0.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 107 107 == Changelog == 108 108 109 = 1.0.5 = 110 * Support multi-stop order 111 109 112 = 1.0.4 = 110 113 * Added guideline for troubleshooting -
lalamove/trunk/includes/class-lalamove-widget-actions.php
r2661191 r2723141 12 12 if ( ! class_exists( 'Lalamove_Widget_Actions' ) ) : 13 13 class Lalamove_Widget_Actions { 14 14 15 15 16 private static $instance; … … 101 102 echo '</div>'; 102 103 } 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 } 103 116 } 104 117 endif; -
lalamove/trunk/lalamove.php
r2676945 r2723141 4 4 * Plugin URI: https://wordpress.org/plugins/lalamove 5 5 * Description: A 24/7 on-demand delivery app 6 * Version: 1.0. 46 * Version: 1.0.5 7 7 * Author: partner.support@lalamove.com 8 8 * Author URI: https://lalamove.com/ … … 121 121 add_action( 'woocommerce_shipping_init', 'lalamove_shipping_method' ); 122 122 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 ); 123 125 } else { 124 126 add_action( 'admin_notices', array( $this, 'notice_activate_wc' ) ); -
lalamove/trunk/readme.txt
r2676954 r2723141 6 6 Tested up to: 5.8.2 7 7 Requires PHP: 7.0 8 Stable tag: 1.0. 48 Stable tag: 1.0.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 107 107 == Changelog == 108 108 109 = 1.0.5 = 110 * Support multi-stop order 111 109 112 = 1.0.4 = 110 113 * Added guideline for troubleshooting
Note: See TracChangeset
for help on using the changeset viewer.