PHP code example of themeplate / menu
1. Go to this page and download the library: Download themeplate/menu 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/ */
themeplate / menu example snippets
use ThemePlate\Menu;
$primary_menu = new Menu( 'primary' );
$primary_menu->get();
$primary_menu->get_id();
$primary_menu->get_name();
$primary_menu->get_slug();
$primary_menu->get_count();
$primary_menu->get_items();
<ul id="menu- echo $primary_menu->get_id();