lib/MenuItem.php
public function meta( $key ) {
		if ( is_object($this->menu_object) && method_exists($this->menu_object, 'meta') ) {
			return $this->menu_object->meta($key);
		}
		if ( isset($this->$key) ) {
			return $this->$key;
		}
	}
public function meta( $key ) {
		if ( is_object($this->menu_object) && method_exists($this->menu_object, 'meta') ) {
			return $this->menu_object->meta($key);
		}
		if ( isset($this->$key) ) {
			return $this->$key;
		}
	}
public function meta ( $ key ) { if ( is_object ( $ this -> menu_object ) && method_exists ( $ this -> menu_object , 'meta' ) ) { return $ this -> menu_object -> meta ( $ key ) ; } if ( isset ( $ this -> $ key ) ) { return $ this -> $ key ; } }
Get a meta value of the menu item.

Plugins like Advanced Custom Fields allow you to set custom fields for menu items. With this
method you can retrieve the value of these.

@example
```twig
<a class="icon-{{ item.meta('icon') }}" href="{{ item.link }}">{{ item.title }}</a>
```
@api
@param string $key The meta key to get the value for.
@return mixed Whatever value is stored in the database.
Get a meta value of the menu item .