WordPress

To use the mmenu.js plugin in a WordPress project, add "wordpress" to the wrappers option.

<script>
   document.addEventListener(
      "DOMContentLoaded", () => {
         new Mmenu( "#my-menu", {
            wrappers: ["wordpress"]
         });
      }
   );
</script>

What it does

Using the "wordpress" wrapper will set the classNames.selected configuration option to the default classname used by WordPress.