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 trialMarie Kolanda
3,658 Points_e( 'Sorry, page not found.', 'treehouse-portfolio' );
In the video, the code is: _e( 'Sorry, page not found.' ); but in the final-theme version I see: _e( 'Sorry, page not found.', 'treehouse-portfolio' );
Why is the meaning of the second argument(parameter)? I have seen this quite a bit in other themes.
2 Answers
Mark Truitt
17,230 PointsHi Marie,
The second parameter is optional. As far as I can honestly tell, its only helpful for translated text.
Kevin Korte
28,149 PointsMark is right, it's optional and it's for translating text using WP's system to do so. One other link I'll provide, it's quite dry, but it's official, is here: https://codex.wordpress.org/I18n_for_WordPress_Developers