PHP code example of underpin / menu-loader

1. Go to this page and download the library: Download underpin/menu-loader library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

underpin / menu-loader example snippets


// Register menu
underpin()->menus()->add( 'example-menu', [
	'name'        => underpin()->__( 'translate-able name' ), // 

underpin()->menus()->add('menu-key','Namespace\To\Class');