[theme-reviewers] Can themes use their own fallback menus?

Chip Bennett chip at chipbennett.net
Tue Nov 5 18:21:24 UTC 2013


fallback_cb defines a callback function used to create output if no menu is
assigned to the theme_location. So, 'cyberchimps_fallback_menu' refers to a
defined function, cyberchimps_fallback_menu(). Look for that function to
see what it does. I assume it's outputting wp_page_menu() or
wp_list_pages() or something similar.


On Tue, Nov 5, 2013 at 1:16 PM, Rohit Tripathi <rohitink at live.com> wrote:

> I am reviewing a theme, they are using the following :* 'fallback_cb' =>
> 'cyberchimps_fallback_menu' )*
>
> Is this acceptable?
>
> ------------------------------
> Date: Tue, 5 Nov 2013 13:12:25 -0500
> From: chip at chipbennett.net
> To: theme-reviewers at lists.wordpress.org
> Subject: Re: [theme-reviewers] Can themes use their own fallback menus?
>
>
> Menus, or menu *functions*?
>
> It is fine to fallback to wp_page_menu(), or wp_list_pages() via
> fallback_cb, but it is not okay to generate custom nav menus.
>
>
> On Tue, Nov 5, 2013 at 1:05 PM, Rohit Tripathi <rohitink at live.com> wrote:
>
> Is it okay if themes create and use their own fallback menus, in the
> wp_nav_menu() function.
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
>
> _______________________________________________ theme-reviewers mailing
> list theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20131105/eb333d12/attachment.html>


More information about the theme-reviewers mailing list