Conor McGregor has accepted a suspension for a violation of doping rules, the UFC announced on Wednesday morning (AEDT).