Whenever a warrant of attachment is issued pursuant to this title the court or judge must direct, by an endorsement on the warrant, that the person charged may give an undertaking for the person’s appearance in an amount to be specified in such endorsement.