Queries the named attribute on menu_item. If expected_type is specified and the attribute does not have this type, NULL is returned. NULL is also returned if the attribute simply does not exist. Since 2.34
the attribute name to query
the expected type of the attribute. [allow-none]
the attribute value, or NULL. [transfer full]
See Implementation
Queries the named attribute on menu_item. If expected_type is specified and the attribute does not have this type, NULL is returned. NULL is also returned if the attribute simply does not exist. Since 2.34