Import legacy nurinda.co.id website

This commit is contained in:
dirga committed 2026-10-01 14:27:19 +07:00
1 parent 3f59bb9038
commit 6e21646ac4
13389 files changed
+3246690

No files matched your search

@@ -0,0 +1,21 @@
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
/**
* Ajax method for wooCommerce cart.
*/
add_action( 'wp_ajax_nopriv_us_ajax_cart', 'us_ajax_cart' );
add_action( 'wp_ajax_us_ajax_cart', 'us_ajax_cart' );
function us_ajax_cart() {
if ( ! class_exists( 'woocommerce' ) ) {
wp_send_json_error();
}
global $woocommerce;
$count = $woocommerce->cart->cart_contents_count;
$result = array( 'count' => $count );
wp_send_json_success( $result );
}