Archives: Snippets
test
RAHBORD CO Strategy Hub Step 1 of 3 33% EnglishفارسیالعربيةTürkçeDeutschFrançaisEspañol Identity Proposed Domain / Website URL Client Name Brand Motto Target Audience Tone of Voice ProfessionalFriendlyLuxury Color Vibes Project Scope Main Product/Service Need to sell products? YesNo Preferred Payment Methods…Continue reading
Untitled Snippet
Fit Men Academy Footer
Fit Men Academy / Here’s an improved prompt that addresses your concerns and provides clear instructions for implementation: — **Prompt:** “I have the free version of WPCode Lite installed on my WordPress Kadence theme. I need your help creating a…Continue reading
Media sync script
add_action( ‘admin_init’, ‘media_sync_library’ ); function media_sync_library() { // Folder inside uploads to scan $scan_folder = ‘/2026/02’; $upload_dir = wp_upload_dir(); $base_dir = $upload_dir[‘basedir’]; $base_url = $upload_dir[‘baseurl’]; $target_dir = $base_dir . $scan_folder; // Stop if folder doesn’t exist if( ! is_dir( $target_dir…Continue reading
Force “Become a Vendor” to always go to /my-account/become-a-vendor/
/** * Force “Become a Vendor” to always go to * /my-account/become-a-vendor/ * * Applies to BOTH Free and Pro versions. * Only affects users who are NOT vendor or pending-vendor. */ function custom_become_vendor_url_override( $url, $endpoint, $value, $permalink ) {…Continue reading
Google Search Console Verification
Untitled Snippet
Untitled Snippet
Remove the coupon section for orders that did not use any coupon.
add_action( ‘woocommerce_email_before_order_table’, ‘conditionally_remove_coupon_section_from_email’, 5, 4 ); function conditionally_remove_coupon_section_from_email( $order, $sent_to_admin, $plain_text, $email ) { if ( ! $order instanceof WC_Order ) { return; } // Get applied coupons $coupons = $order->get_coupon_codes(); // If NO coupons were used, remove the coupon…Continue reading