WWS – Disable and Redirect the Wholesale Suite Dashboard

/** * Disable and Redirect the Wholesale Suite Dashboard to reduce admin bloat and improve load times. */ // 1. Remove the Dashboard submenu page from the admin menu add_action( ‘admin_menu’, ‘wws_remove_dashboard_submenu’, 9999 ); function wws_remove_dashboard_submenu() { // Parent slug…Continue reading

WooCommerce to Google Sheets schaahi store

add_action(‘woocommerce_order_status_completed’, ‘send_order_to_google_sheets’, 10, 1); function send_order_to_google_sheets($order_id) { $order = wc_get_order($order_id); if (!$order) return; $line_items = $order->get_items(); $product_ids = array(); $product_names = array(); foreach ($line_items as $item) { $product_ids[] = $item->get_product_id(); $product_names[] = $item->get_name(); } $data = array( ‘id’ => $order->get_id(),…Continue reading

AI Buzz — Auto Article Count

/** * AI BUZZ — AUTO ARTICLE COUNT UPDATER * * Automatically updates any element with id=”aibuzz-article-count” * on the page with the current total number of published articles. * * Uses localStorage to cache the count for 24 hours.…Continue reading