PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.0.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.0.0
2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 All 61 releases
← All changes | includes/Admin/Order.php +4 -4 1.4.22.0.0 View file →
@@ -34,9 +34,9 @@
34 34 public function add_subscription_label( $order ) {
35 35 $histories = Helper::get_subscriptions_from_order( $order->get_id() ); // HPOS: Safe, uses custom table for subscription relations.
36 36 if ( count( $histories ) > 0 ) :
37 37 ?>
38 - <div class="subscrpt-order-label"><?php echo esc_html_e( 'Subscription order', 'sdevs_subscrpt' ); ?></div>
38 + <div class="subscrpt-order-label"><?php echo esc_html_e( 'Subscription order', 'subscription' ); ?></div>
39 39 <?php
40 40 endif;
41 41 }
42 42
@@ -43,18 +43,18 @@
43 43 /**
44 44 * Related Subscriptions meta box on Orders.
45 45 */
46 46 public function add_meta_boxes() {
47 - $screen = is_wc_order_hpos_enabled()
47 + $screen = wps_subscription_is_wc_order_hpos_enabled()
48 48 ? wc_get_page_screen_id( 'shop-order' )
49 49 : 'shop_order';
50 - $order_id = is_wc_order_hpos_enabled() && isset( $_GET['id'] ) ? ( sanitize_text_field( wp_unslash( $_GET['id'] ) ) ) : get_the_ID();
50 + $order_id = wps_subscription_is_wc_order_hpos_enabled() && isset( $_GET['id'] ) ? ( sanitize_text_field( wp_unslash( $_GET['id'] ) ) ) : get_the_ID();
51 51 $histories = Helper::get_subscriptions_from_order( $order_id );
52 52 if ( is_array( $histories ) ) {
53 53 $order = wc_get_order( $order_id ); // HPOS: Safe, uses WooCommerce CRUD.
54 54 add_meta_box(
55 55 'subscrpt_order_related',
56 - __( 'Related Subscriptions', 'sdevs_subscrpt' ),
56 + __( 'Related Subscriptions', 'subscription' ),
57 57 array( $this, 'subscrpt_order_related' ),
58 58 $screen,
59 59 'normal',
60 60 'default',