Creating custom settings with multiple modules might be confusing because WordPress documents can’t add all examples for our requirements.

Here is the snippet of creating custom menu page.