Every judge, justice, commissioner, or assistant commissioner of a court of this state who accepts any money or other thing of value for performing any marriage, including any money or thing of value voluntarily tendered by the persons about to be married or who have been married by such judge, justice, commissioner, or assistant commissioner, whether the acceptance occurs before or after performance of the marriage and whether or not performance of the marriage is conditioned on the giving of such money or the thing of value by the persons being married, is guilty of a misdemeanor.
It is not a necessary element of the offense described by this section that the acceptance of the money or other thing of value be committed with intent to commit extortion or with other criminal intent.
This section does not apply to the request for or acceptance of a fee expressly imposed by law for performance of a marriage or to the request or acceptance by any retired judge, retired justice, or retired commissioner of a fee for the performance of a marriage. For the purposes of this section, a retired judge or retired justice sitting on assignment in court shall not be deemed to be a retired judge or retired justice.
This section does not apply to an acceptance of a fee for performing a marriage on Saturday, Sunday, or a legal holiday.
Ca. Pen. Code § 94.5