PHP code example of amphibee / menu-item-type-maker
1. Go to this page and download the library: Download amphibee/menu-item-type-maker 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/ */
amphibee / menu-item-type-maker example snippets
use AmphiBee\MenuItemTypeMaker\Facades\MenuItemType;
MenuItemType::make('Card', 'card')
->setIcon('path/to/my/icon.svg')
->setView('parts/nav/item-types/card.php')
->setFieldGroup('path/to/acf/field-group.php');