Generally voluntary.
Most family litigants must attend a Mandatory Information Program. That is an information session, not mediation. A judge can order an intake meeting with a court-connected mediation service, while family mediation itself is generally voluntary.
There is no blanket requirement for every separating couple to purchase private mediation.
Ontario Superior Court family guide ↗