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

Provider Referral

Refer a Patient | Skills Therapy Clinic Referral Partners Welcome Your Patients DeserveSpecialized Therapy.We Are Here to Help. Skills Therapy Clinic is a bilingual pediatric therapy practice in Clermont, FL. We partner with pediatricians, schools, and healthcare providers so every…Continue reading

Show Sticky Posts on Top of the Archive Templates – WPX Tetris Theme

add_action(‘pre_get_posts’, function($query) { if (!is_admin() && $query->is_main_query() && is_archive() && get_theme_mod(‘universal_toggle_post_badge’, ‘true’)) { $sticky_posts = get_option(‘sticky_posts’); if (!empty($sticky_posts)) { add_filter(‘posts_orderby’, function($orderby, $query) use ($sticky_posts) { global $wpdb; $sticky_list = implode(‘,’, array_map(‘intval’, $sticky_posts)); return “FIELD({$wpdb->posts}.ID, {$sticky_list}) DESC, {$orderby}”; }, 10, 2);…Continue reading

AffiliateWP – Affiliate Referrals CSV Export

/** * Plugin Name: AffiliateWP – Affiliate Referrals CSV Export * Description: Adds a “Download Referrals CSV” button to the Affiliate Area referrals tab. * When WooCommerce is active, the export includes full order details * (customer name, email, items…Continue reading

AffiliateWP – Admin Notification for Vanity Coupon Code Requests

add_action( ‘wp_ajax_validate_vanity_code’, ‘send_vanity_coupon_request_notification’, 9 ); function send_vanity_coupon_request_notification() { if ( ! isset( $_REQUEST[‘vccNonce’] ) || ! wp_verify_nonce( $_REQUEST[‘vccNonce’], ‘request_vanity_coupon_code’ ) ) { return; } $affiliate_id = isset( $_REQUEST[‘affiliateID’] ) ? sanitize_text_field( $_REQUEST[‘affiliateID’] ) : false; $coupon_id = isset( $_REQUEST[‘couponID’] )…Continue reading