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 How to Build a WordPress Plugin Building a WordPress Plugin Settings Page Admin Area Forms in WordPress

The return value of esc_html should be assigned to a variable named "$my_plugin_username".

I followed the lesson exactly. I don't understand...

Sean T. Unwin
Sean T. Unwin
28,690 Points

If you haven't solved this yet, please post your attempt(s) and any specific questions you may have.

1 Answer

Chris McKirgan
Chris McKirgan
5,666 Points

Is your syntax something like this? Make sure you this is set before any function returns. It would be helpful to see a copy of your code. $my_plugin_username = esc_html($your_var_or_function_here);