A 47-year-old Anaheim man accused of trying to lure a 12-year-old boy into his car in Anaheim pleaded guilty Wednesday.