$matewa_email, 'updates' => $matewa_updates, 'skool' => $matewa_skool, 'domain' => site_url(), 'locale' => get_locale(), 'version' => MATEWA_VERSION, 'site_hash' => $matewa_site_hash, 'ua' => $matewa_ua, 'timestamp' => time(), ); // Fire-and-forget request. wp_remote_post( MATEWA_OPTIN_ENDPOINT, array( 'timeout' => 1, 'blocking' => false, 'body' => $matewa_body, ) ); // Mark as synced. update_option( 'matewa_optin_last_sent', time() ); // Log if debug enabled. if ( function_exists( 'matewa_debug_log' ) ) { matewa_debug_log( "Opt-in sync sent for: $matewa_email" ); } }