Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Gbolade Ogunfowote
Gbolade Ogunfowote
3,812 Points

what is the significance of __('Main Menu')

So I checked out register nav menus in the codex: https://codex.wordpress.org/Function_Reference/register_nav_menus and I realized that the array values being used don't have __() around them. I removed it and there was no difference. Please is there any significance, or does it serve any purpose.

1 Answer

Colin Marshall
Colin Marshall
32,861 Points

Those are localization functions that are used to make a theme support multiple languages.

http://fifthcup.com/wordpress-localization-and-the-double-underscores/