We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 756122a commit a27ee62Copy full SHA for a27ee62
templates/admin/ppom-fields.php
@@ -25,9 +25,11 @@
25
$product_meta = array();
26
$ppom_field_index = 1;
27
$is_edit_screen = false;
28
+$is_new_group = false;
29
30
if ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'new' ) {
31
$is_edit_screen = true;
32
+ $is_new_group = true;
33
}
34
if ( isset( $_REQUEST['productmeta_id'] ) && $_REQUEST ['do_meta'] == 'edit' ) {
35
@@ -542,7 +544,7 @@ class="dashicons dashicons-editor-help"></i></span>
542
544
</select>
543
545
</div>
546
- <?php if ( $is_edit_screen ) { ?>
547
+ <?php if ( $is_edit_screen && ! $is_new_group ) { ?>
548
<a class="btn btn-sm btn-secondary ppom-products-modal"
549
data-ppom_id="<?php echo esc_attr( $product_meta_id ); ?>"
550
data-formmodal-id="ppom-product-modal"
0 commit comments