Updated example functions for menu and custom post type support