Month: August 2025

Convert to wp_remote_post

User convert // Call Probo Order API (sandbox) $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => $api_url, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => json_encode($payload), CURLOPT_HTTPHEADER => [ 'Authorization: Basic ' . $api_token, 'Content-Type: application/json' ], ]); $response = curl_exec($curl); […]

Add WooCommerce Order Column

User add new column in woocomemrce order section table Assistant To **add a new column to the WooCommerce admin Orders list table** (under **WooCommerce > Orders**), you can use the `manage_edit-shop_order_columns` and `manage_shop_order_posts_custom_column` hooks. Here's a full working example that adds a custom column called "Order Source": — ### ✅ Step-by-Step Code Add this to […]

Add banner to category

User add attached in wooocmmerce cateogory product page category title/description and image with above background Assistant To add the attached banner (with background, title/description, and image) to a **WooCommerce category product page**, follow these steps: — ### ✅ 1. **Upload the Image** Go to your WordPress admin panel: – **Media > Add New** and upload […]

KiyOh layout aanpassen

User overrite layout of reviews provied by Plugin Name: KiyOh / Klantenvertellen Plugin URI: https://wordpress.org/plugins/kiyoh-klantenvertellen/ Description: Toon reviews in Google rich snippet formaat van KiyOh of Klantenvertellen met shortcodes. Assistant To override the **layout of reviews** provided by the **KiyOh / Klantenvertellen** plugin (`kiyoh-klantenvertellen`), you can do it in **one of two ways**, depending on […]

Owl Carousel Blog Posts

User Create latest blog post owl caursel with 3 at a time and give option to pass category, and active and inactive caursel shortcode wordpress Assistant Here's a **complete WordPress shortcode** to display the latest blog posts using **Owl Carousel**, with the following features: – Shows **3 posts at a time** by default. – Accepts […]

Git remote reset

User reset remote Assistant Sure! "Reset remote" can mean a few different things depending on what you want: **If you mean in Git (most common use):** | Situation | Command | |:—|:—| | Reset your local branch to match the remote exactly (discard local changes) | `git fetch origin“git reset –hard origin/branch-name` | | Force […]

List DDEV Projects Ubuntu

User list all ddev projects ubuntu Assistant To list all DDEV projects on Ubuntu (or any OS), run the following command in your terminal: ddev list This will display all DDEV projects that have been started or are currently available in your DDEV global project list, with information such as: – Project name – Project […]

Mobile Owl Carousel Styling

User <style> .wc-category-slider .product-card { text-align: center; } .wc-category-slider .product-card img { max-width: 100%; height: 200px; width: 200px; object-fit: cover; } .product-details { padding: 24px 17px 0 17px; display: flex ; gap:16px; flex-direction: column; align-items: center; } .wc-category-slider .product-card h2.woocommerce-loop-product__title { font-size: 14px; font-weight: 600; color: #0A4C4D; margin:0; } .wc-category-slider .price { color: #052626; font-weight: […]

Custom Product Tabs AJAX

User <script> document.addEventListener('DOMContentLoaded', function () { const tabs = document.querySelectorAll('.tab-button'); const contents = document.querySelectorAll('.tab-content'); tabs.forEach(tab => { tab.addEventListener('click', function () { tabs.forEach(t => t.classList.remove('active')); contents.forEach(c => c.style.display = 'none'); this.classList.add('active'); document.getElementById('tab-' + this.dataset.tab).style.display = 'block'; }); }); }); </script> don't use short code just user custom code and ajax and apply owl and display 4 […]

Equal height product cards

User <style> .wc-category-slider .product-card { text-align: center; } .wc-category-slider .product-card img { max-width: 100%; height: 200px; width: 200px; object-fit: cover; } .product-details { padding: 24px 17px 0 17px; display: flex ; gap:16px; flex-direction: column; align-items: center; } .wc-category-slider .product-card h2.woocommerce-loop-product__title { font-size: 14px; font-weight: 600; color: #0A4C4D; margin:0; } .wc-category-slider .price { color: #052626; font-weight: […]