This class CreateNavMenus  is use to create nav menus location, as register_nav_menus()  function does.

File need to include:

Following file contain the class, you can include in your theme or plugin or application to use of class.

classes/class-create-nav-menus.php

Example file:

Following file is contain example code of usages of class.

functions/functions-create-nav-menus.php

Code sample:

$args = array(
    'nav_menus' => array(
        array(
            'header-menu1' => esc_html__( 'Header Menu 1', 'dart-framework' ),
        ),
        array(
            'header-menu2' => esc_html__( 'Header Menu 2', 'dart-framework' ),
        ),
    ),
);

$CreateNavMenus = new CreateNavMenus($args);

Screenshot:

WordPress Option Framework