Blog

Core PHP .htaccess cleanup

User # BEGIN WP Rocket v3.12.1 # Use UTF-8 encoding for anything served text/plain or text/html AddDefaultCharset UTF-8 # Force UTF-8 for a number of file formats AddCharset UTF-8 .atom .css .js .json .rss .vtt .xml # BEGIN Boxoffice Rules RewriteEngine On RewriteBase / # Allow direct access to API directory RewriteRule ^api/ – [L] […]

Stripe Facebook issue debug

User I have had a difficult weekend trying to debug issues on the Stripe Checkout. Visitors coming to the site from Facebook could not enter any info in the Credit Card fields. I have integrated stripe like this let orderData = { tickets: [], addOns: [], total: 0 }; // Store event date string globally […]

Show calendar tab content

User <style> /* Toggle Button */ .toggle-btn { transition: background 0.2s, color 0.2s; } .toggle-btn.active { background: #00c48c !important; color: #fff !important; } /* Calendar Containers */ .weekly-calendar, .monthly-calendar { margin: 30px 0; font-family: Arial, sans-serif; } /* Table Styling */ .weekly-calendar table, .monthly-calendar table { width: 100%; border-collapse: collapse; text-align: center; min-width: 220px; margin-bottom: […]

Get Stripe Account ID

User How I get stripeAccount id Assistant To get a **Stripe Account ID**, the method depends on whether you want: — ### ✅ 1. **Your own (platform's) Stripe Account ID** You can find this in the **Stripe Dashboard**: – Go to [https://dashboard.stripe.com/settings/account](https://dashboard.stripe.com/settings/account) – You’ll see something like: `acct_1ABC23XYZ456` — this is your **Stripe Account ID** […]

PSR-4 autoload PHP classes

User What is composer 4 psr autoload How to use in core php to create classes Assistant ### ✅ What is `composer` PSR-4 Autoloading? **PSR-4** is a PHP-FIG standard that defines how class files should be autoloaded based on their namespace. It allows you to automatically load classes without manually including files. Composer supports PSR-4 […]

YITH WooCommerce Resources Dates

User How I get each resources attached in product avaialbe date from Yith woocommerce preium plugin programmatclly Assistant To **get each resource attached to a product's available dates** programmatically using the **YITH WooCommerce Booking Premium** plugin, you’ll need to work with their Booking Product and Resource APIs. — ### ✅ Goal: > For a **product […]

Next steps after issue

User After the reproducing the issue, What will I do? Assistant Once you've **reproduced the issue**, here’s what you should do next in a professional and efficient way: — ### ✅ Step-by-Step After Reproducing the Issue: 1. **Confirm the Behavior** – Verify if the issue is consistent and under what exact conditions it appears. – […]

Get WordPress Menu Items

User Get wordpress backend menu item programmatically Assistant To **get WordPress admin menu items programmatically**, you can use the global `$menu` and `$submenu` arrays which are populated when the admin menu is being built. Here’s a simple example you can run inside a custom plugin or within a theme’s `functions.php` to retrieve and inspect all […]

SendGrid Custom Integration WP

User How to integrate sendgrid marketing newsleeter programtticall yin wordpress without Marketing->Signup form imframe ON custom form Assistant To **integrate SendGrid Marketing Campaigns (newsletter)** programmatically in WordPress **without using the Signup Form iframe** (i.e., using a **custom form**), follow this secure and flexible approach using the **SendGrid API**: — ### ✅ Goal: When a user […]

Probo Configurator Price API

User after configurator complete jQuery('#launchConfigurator').attr('disabled', true).css('opacity', 0.5); function page() { return { updateModal() { const result = window.proboConfigurator.getResult(); const code = window.proboConfigurator.getConfiguration(); console.log("🧾 Probo Configurator Result:", result); console.log("🧾 Probo Configurator Configuration:", code); } } } // Listen for the Probo Configurator's "finished" event window.addEventListener("proboConfigurator:finished", async function (event) { console.log("✅ Configuration finished"); jQuery('#launchConfigurator').attr('disabled', false).css('opacity', 1); // […]