Archives: Snippets
AffiliateWP Network Stats Shortcode
/** * Shortcode: [affwp_network_stats] * * Returns a single network stat for the logged-in affiliate. * Use multiple instances in JetEngine with your own labels. * * Attributes: * type = total_earnings (default) | own_earnings | downline_earnings * | network_count…Continue reading
AffiliateWP — Searchable Checkout Referrals Dropdown WPCode Description
add_action( ‘wp_enqueue_scripts’, function() { if ( ! function_exists( ‘is_checkout’ ) || ! is_checkout() ) { return; } wp_enqueue_style( ‘affwp-select2’ ); wp_enqueue_script( ‘affwp-select2’ ); // Hide WC Blocks floating label + chevron — Select2 replaces the UI entirely wp_add_inline_style( ‘affwp-select2’, ‘…Continue reading
Disallow Store Credit When There Is an Active Coupon in the Cart
/** * Hide store credit field when a regular coupon is applied. * Also removes any already-applied store credit when a coupon is added. */ // PHP: Hide store credit on AJAX checkout refresh when coupon is active add_filter( ‘acfw_is_allow_store_credits’,…Continue reading
Show Page Title
echo the_title();Continue reading
WPForms Center Align
/* Center the form container */ .wpforms-container.wpf-center { margin: 0 auto !important; max-width: 500px !important; width: 500px !important; } /* Center submit button and make it full width */ .wpf-center .wpforms-submit-container { display: inline-block; text-align: center; width: 100% !important; }…Continue reading
RED’S Java Snippet
fetch(“https://redllc.ai/wp-json/chaport/v1/lead”, { method: “POST”, headers: { “Content-Type”: “application/json” }, body: JSON.stringify(payload) }) .then(res => res.json()) .then(data => { console.log(“Webhook response:”, data); }) .catch(err => { console.error(“Error:”, err); });Continue reading
RED’S CSS Snippet
#red-chatbot-wrap { max-width: 720px; margin: 30px auto; font-family: Arial, sans-serif; } .red-chatbot-card { border: 1px solid #d1d5db; border-radius: 14px; overflow: hidden; background: #fff; } .red-chatbot-header { background: #0f172a; color: #fff; padding: 20px; } #red-chat-window { padding: 20px; height: 350px; overflow-y:…Continue reading
Visualisatie1
geri sayım sayacı
6 Haziran 2026’ya Kalan SüreContinue reading