Changeset 2981802
- Timestamp:
- 10/20/2023 04:53:39 PM (2 years ago)
- Location:
- wpbr-linepay-tw
- Files:
-
- 10 edited
- 1 copied
-
tags/1.1.4 (copied) (copied from wpbr-linepay-tw/trunk)
-
tags/1.1.4/includes/admin/meta-boxes/class-linepay-tw-order-meta-boxes.php (modified) (2 diffs)
-
tags/1.1.4/includes/gateways/class-linepay-tw-request.php (modified) (1 diff)
-
tags/1.1.4/readme.md (modified) (1 diff)
-
tags/1.1.4/readme.txt (modified) (2 diffs)
-
tags/1.1.4/wpbr-linepay-tw.php (modified) (2 diffs)
-
trunk/includes/admin/meta-boxes/class-linepay-tw-order-meta-boxes.php (modified) (2 diffs)
-
trunk/includes/gateways/class-linepay-tw-request.php (modified) (1 diff)
-
trunk/readme.md (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wpbr-linepay-tw.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpbr-linepay-tw/tags/1.1.4/includes/admin/meta-boxes/class-linepay-tw-order-meta-boxes.php
r2979934 r2981802 31 31 self::get_instance(); 32 32 33 add_action( 'add_meta_boxes', array( self::get_instance(), 'linepay_add_meta_boxes' ) );33 add_action( 'add_meta_boxes', array( self::get_instance(), 'linepay_add_meta_boxes' ), 10, 2 ); 34 34 35 35 } … … 41 41 * @return void 42 42 */ 43 public function linepay_add_meta_boxes( ) {43 public function linepay_add_meta_boxes( $post_type, $post_or_order_object ) { 44 44 45 //NOTE: 這邊拿不到 global $post 45 $order = ( $post_or_order_object instanceof WP_Post ) ? wc_get_order( $post_or_order_object->ID ) : $post_or_order_object; 46 47 if ( ! $order instanceof WC_Order ) { 48 return; 49 } 50 51 if ( ! array_key_exists( $order->get_payment_method(), LINEPay_TW::$allowed_payments ) ) { 52 return; 53 } 54 46 55 $screen = wc_get_container()->get( CustomOrdersTableController::class )->custom_orders_table_usage_is_enabled() 47 56 ? wc_get_page_screen_id( 'shop-order' ) 48 57 : 'shop_order'; 49 58 50 // if ( array_key_exists( $order->get_meta( '_payment_method' ), LINEPay_TW::$allowed_payments ) ) { 51 add_meta_box( 52 'woocommerce-linepay-meta-boxes', 53 __( 'LINE Pay Details', 'wpbr-linepay-tw' ), 54 array( 55 self::get_instance(), 56 'linepay_admin_meta', 57 ), 58 $screen, 59 'side', 60 'default' 61 ); 62 // } 59 add_meta_box( 60 'woocommerce-linepay-meta-boxes', 61 __( 'LINE Pay Details', 'wpbr-linepay-tw' ), 62 array( 63 self::get_instance(), 64 'linepay_admin_meta', 65 ), 66 $screen, 67 'side', 68 'default' 69 ); 63 70 64 71 } -
wpbr-linepay-tw/tags/1.1.4/includes/gateways/class-linepay-tw-request.php
r2979934 r2981802 621 621 * @return void 622 622 */ 623 if ( apply_filters( 'linepay_tw_enable_detail_note', true ) ) {623 if ( apply_filters( 'linepay_tw_enable_detail_note', false ) ) { 624 624 $check_status = $this->check( $order ); 625 625 $check_code = $check_status->returnCode; -
wpbr-linepay-tw/tags/1.1.4/readme.md
r2979934 r2981802 7 7 3. Support country: Taiwan 8 8 4. Support Plugin: WooCommerce 9 9 5. Compatible with High-Performance Order Storage (HPOS) 10 10 11 11 ## Changlog ## 12 13 = 1.1.4 = 14 *Release Date - 20 October 2023* 15 16 * Update: only show metabox if the payment method is LINE Pay 12 17 13 18 = 1.1.3 = -
wpbr-linepay-tw/tags/1.1.4/readme.txt
r2979934 r2981802 5 5 Tested up to: 6.3.2 6 6 Requires PHP: 7.4 7 Stable tag: 1.1. 37 Stable tag: 1.1.4 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 21 21 * Support country: Taiwan 22 22 * Support Plugin: WooCommerce 23 * Compatible with High-Performance Order Storage (HPOS) 23 24 24 25 == Changelog == 26 27 = 1.1.4 - 2023-10-21 = 28 29 * Update: only show metabox if the payment method is LINE Pay 25 30 26 31 = 1.1.3 - 2023-10-18 = -
wpbr-linepay-tw/tags/1.1.4/wpbr-linepay-tw.php
r2979934 r2981802 6 6 * Author: WPBrewer 7 7 * Author URI: https://wpbrewer.com 8 * Version: 1.1. 38 * Version: 1.1.4 9 9 * Text Domain: wpbr-linepay-tw 10 10 * Domain Path: /languages … … 35 35 define( 'WPBR_LINEPAY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 36 36 define( 'WPBR_LINEPAY_BASENAME', plugin_basename( __FILE__ ) ); 37 define( 'WPBR_LINEPAY_VERSION', '1.1. 3' );37 define( 'WPBR_LINEPAY_VERSION', '1.1.4' ); 38 38 39 39 /** -
wpbr-linepay-tw/trunk/includes/admin/meta-boxes/class-linepay-tw-order-meta-boxes.php
r2979934 r2981802 31 31 self::get_instance(); 32 32 33 add_action( 'add_meta_boxes', array( self::get_instance(), 'linepay_add_meta_boxes' ) );33 add_action( 'add_meta_boxes', array( self::get_instance(), 'linepay_add_meta_boxes' ), 10, 2 ); 34 34 35 35 } … … 41 41 * @return void 42 42 */ 43 public function linepay_add_meta_boxes( ) {43 public function linepay_add_meta_boxes( $post_type, $post_or_order_object ) { 44 44 45 //NOTE: 這邊拿不到 global $post 45 $order = ( $post_or_order_object instanceof WP_Post ) ? wc_get_order( $post_or_order_object->ID ) : $post_or_order_object; 46 47 if ( ! $order instanceof WC_Order ) { 48 return; 49 } 50 51 if ( ! array_key_exists( $order->get_payment_method(), LINEPay_TW::$allowed_payments ) ) { 52 return; 53 } 54 46 55 $screen = wc_get_container()->get( CustomOrdersTableController::class )->custom_orders_table_usage_is_enabled() 47 56 ? wc_get_page_screen_id( 'shop-order' ) 48 57 : 'shop_order'; 49 58 50 // if ( array_key_exists( $order->get_meta( '_payment_method' ), LINEPay_TW::$allowed_payments ) ) { 51 add_meta_box( 52 'woocommerce-linepay-meta-boxes', 53 __( 'LINE Pay Details', 'wpbr-linepay-tw' ), 54 array( 55 self::get_instance(), 56 'linepay_admin_meta', 57 ), 58 $screen, 59 'side', 60 'default' 61 ); 62 // } 59 add_meta_box( 60 'woocommerce-linepay-meta-boxes', 61 __( 'LINE Pay Details', 'wpbr-linepay-tw' ), 62 array( 63 self::get_instance(), 64 'linepay_admin_meta', 65 ), 66 $screen, 67 'side', 68 'default' 69 ); 63 70 64 71 } -
wpbr-linepay-tw/trunk/includes/gateways/class-linepay-tw-request.php
r2979934 r2981802 621 621 * @return void 622 622 */ 623 if ( apply_filters( 'linepay_tw_enable_detail_note', true ) ) {623 if ( apply_filters( 'linepay_tw_enable_detail_note', false ) ) { 624 624 $check_status = $this->check( $order ); 625 625 $check_code = $check_status->returnCode; -
wpbr-linepay-tw/trunk/readme.md
r2979934 r2981802 7 7 3. Support country: Taiwan 8 8 4. Support Plugin: WooCommerce 9 9 5. Compatible with High-Performance Order Storage (HPOS) 10 10 11 11 ## Changlog ## 12 13 = 1.1.4 = 14 *Release Date - 20 October 2023* 15 16 * Update: only show metabox if the payment method is LINE Pay 12 17 13 18 = 1.1.3 = -
wpbr-linepay-tw/trunk/readme.txt
r2979934 r2981802 5 5 Tested up to: 6.3.2 6 6 Requires PHP: 7.4 7 Stable tag: 1.1. 37 Stable tag: 1.1.4 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 21 21 * Support country: Taiwan 22 22 * Support Plugin: WooCommerce 23 * Compatible with High-Performance Order Storage (HPOS) 23 24 24 25 == Changelog == 26 27 = 1.1.4 - 2023-10-21 = 28 29 * Update: only show metabox if the payment method is LINE Pay 25 30 26 31 = 1.1.3 - 2023-10-18 = -
wpbr-linepay-tw/trunk/wpbr-linepay-tw.php
r2979934 r2981802 6 6 * Author: WPBrewer 7 7 * Author URI: https://wpbrewer.com 8 * Version: 1.1. 38 * Version: 1.1.4 9 9 * Text Domain: wpbr-linepay-tw 10 10 * Domain Path: /languages … … 35 35 define( 'WPBR_LINEPAY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 36 36 define( 'WPBR_LINEPAY_BASENAME', plugin_basename( __FILE__ ) ); 37 define( 'WPBR_LINEPAY_VERSION', '1.1. 3' );37 define( 'WPBR_LINEPAY_VERSION', '1.1.4' ); 38 38 39 39 /**
Note: See TracChangeset
for help on using the changeset viewer.