|
@@ 163-166 (lines=4) @@
|
| 160 |
|
} |
| 161 |
|
|
| 162 |
|
// Products |
| 163 |
|
if ( in_array( $screen_id, array( 'edit-product' ) ) ) { |
| 164 |
|
wp_register_script( 'woocommerce_quick-edit', WC()->plugin_url() . '/assets/js/admin/quick-edit' . $suffix . '.js', array( 'jquery', 'woocommerce_admin' ), WC_VERSION ); |
| 165 |
|
wp_enqueue_script( 'woocommerce_quick-edit' ); |
| 166 |
|
} |
| 167 |
|
|
| 168 |
|
// Meta boxes |
| 169 |
|
if ( in_array( $screen_id, array( 'product', 'edit-product' ) ) ) { |
|
@@ 221-224 (lines=4) @@
|
| 218 |
|
|
| 219 |
|
wp_localize_script( 'wc-admin-order-meta-boxes', 'woocommerce_admin_meta_boxes_order', $params ); |
| 220 |
|
} |
| 221 |
|
if ( in_array( $screen_id, array( 'shop_coupon', 'edit-shop_coupon' ) ) ) { |
| 222 |
|
wp_register_script( 'wc-admin-coupon-meta-boxes', WC()->plugin_url() . '/assets/js/admin/meta-boxes-coupon' . $suffix . '.js', array( 'wc-admin-meta-boxes' ), WC_VERSION ); |
| 223 |
|
wp_enqueue_script( 'wc-admin-coupon-meta-boxes' ); |
| 224 |
|
} |
| 225 |
|
if ( in_array( str_replace( 'edit-', '', $screen_id ), array_merge( array( 'shop_coupon', 'product' ), wc_get_order_types( 'order-meta-boxes' ) ) ) ) { |
| 226 |
|
$post_id = isset( $post->ID ) ? $post->ID : ''; |
| 227 |
|
$currency = ''; |