Skip to content

Commit 302d79e

Browse files
committed
gspc-map-order-data-to-entry.php: Added snippet to map order data to entry.
1 parent 338e025 commit 302d79e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gs-product-configurator/gspc-map-order-data-to-entry.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ public function __construct( $args = array() ) {
2525
'field_map' => array(),
2626
) );
2727

28+
if ( empty( $this->_args['form_id'] ) ) {
29+
error_log( 'GSPC_Map_Order_Data_to_Entry requires a form_id.' );
30+
return;
31+
}
32+
2833
add_action( 'init', array( $this, 'init' ) );
2934
}
3035

0 commit comments

Comments
 (0)