Skip to content

Commit

Permalink
Merge pull request #184 from newfold-labs/release-1.3.13
Browse files Browse the repository at this point in the history
Release 1.3.13
  • Loading branch information
mamatharao05 authored Dec 1, 2023
2 parents 28a7c23 + eabc2b1 commit 81be77c
Show file tree
Hide file tree
Showing 8 changed files with 892 additions and 832 deletions.
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '9acdf365c2c0589df651');
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '342c262e9a94ce889f05');
40 changes: 20 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions includes/ECommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public function __construct( Container $container ) {
add_action( 'load-toplevel_page_' . $container->plugin()->id, array( $this, 'register_assets' ) );
add_action( 'load-toplevel_page_' . $container->plugin()->id, array( $this, 'register_textdomains' ) );
add_action('wp_body_open', array( $this, 'regiester_site_preview' ));
add_action('before_woocommerce_init', array( $this,'hide_woocommerce_set_up') );

// Handle WonderCart Integrations
if ( is_plugin_active( 'wonder-cart/init.php' ) ) {
Expand Down Expand Up @@ -323,4 +324,15 @@ public function regiester_site_preview() {
echo "<div style='background-color: #e71616; padding: 0 16px;color:#ffffff;font-size:16px;text-align:center;font-weight: 590;'>" . esc_html__( 'Site Preview - This site is NOT LIVE, only admins can see this view.', 'wp-module-ecommerce' ) . "</div>";
}
}
public function hide_woocommerce_set_up() {
$hidden_list = get_option('woocommerce_task_list_hidden_lists', []);
if(! in_array("setup", $hidden_list)){
$woocommerce_list = array_merge(get_option('woocommerce_task_list_hidden_lists', []),array(
"setup"
));
// $woocommerce_list = array("setup");
update_option('woocommerce_task_list_hidden_lists', $woocommerce_list);
}

}
}
Loading

0 comments on commit 81be77c

Please sign in to comment.