Show on transcript controls whether or not the course will display in the user's transcript.
The show on transcript setting also controls the display of the course in "Pending activities."
Navigate to the course.
Click "Course settings."
Check the checkbox for "Show on transcript" to display the course on the transcript. Uncheck the checkbox to remove the course from the transcript.