library/Theme/FixedActionBar.php
public function populateSelectField($field)
    {
        $menus = \Municipio\Helper\Navigation::getMenuList();
        $field['choices'] = array();

        foreach ($menus as $menu) {
            $field['choices'][$menu->term_id] = $menu->name . ' (ID: ' . $menu->term_id . ')';
        }

        return $field;
    }
public function populateSelectField($field)
    {
        $menus = \Municipio\Helper\Navigation::getMenuList();
        $field['choices'] = array();

        foreach ($menus as $menu) {
            $field['choices'][$menu->term_id] = $menu->name . ' (ID: ' . $menu->term_id . ')';
        }

        return $field;
    }
public function populateSelectField ( $ field ) { $ menus = \ Municipio \ Helper \ Navigation :: getMenuList ( ) ; $ field [ 'choices' ] = array ( ) ; foreach ( $ menus as $ menu ) { $ field [ 'choices' ] [ $ menu -> term_id ] = $ menu -> name . ' (ID: ' . $ menu -> term_id . ')' ; } return $ field ; }
Populate select field with WP menus
@param array $field ACF fields
@return array
Populate select field with WP menus