@@ 65-70 (lines=6) @@ | ||
62 | /** |
|
63 | * Show a slug input box. |
|
64 | */ |
|
65 | public function product_category_slug_input() { |
|
66 | $permalinks = get_option( 'woocommerce_permalinks' ); |
|
67 | ?> |
|
68 | <input name="woocommerce_product_category_slug" type="text" class="regular-text code" value="<?php if ( isset( $permalinks['category_base'] ) ) echo esc_attr( $permalinks['category_base'] ); ?>" placeholder="<?php echo esc_attr_x('product-category', 'slug', 'woocommerce') ?>" /> |
|
69 | <?php |
|
70 | } |
|
71 | ||
72 | /** |
|
73 | * Show a slug input box. |
|
@@ 75-80 (lines=6) @@ | ||
72 | /** |
|
73 | * Show a slug input box. |
|
74 | */ |
|
75 | public function product_tag_slug_input() { |
|
76 | $permalinks = get_option( 'woocommerce_permalinks' ); |
|
77 | ?> |
|
78 | <input name="woocommerce_product_tag_slug" type="text" class="regular-text code" value="<?php if ( isset( $permalinks['tag_base'] ) ) echo esc_attr( $permalinks['tag_base'] ); ?>" placeholder="<?php echo esc_attr_x('product-tag', 'slug', 'woocommerce') ?>" /> |
|
79 | <?php |
|
80 | } |
|
81 | ||
82 | /** |
|
83 | * Show a slug input box. |