PHP code example of accell / acf-nav-menu
1. Go to this page and download the library: Download accell/acf-nav-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/ */
accell / acf-nav-menu example snippets
$field
->addField('my_nav_field', 'nav_menu')
->setConfig('return_format' => 'id')
->setConfig('allow_null' => 0)
->setConfig('container' => 'div');