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 Creating a Plugin Settings Page

CJ Williams
CJ Williams
34,372 Points

Creating a Plugin Settings Page 2

I am trying to add the "add_options_page()" funciton in part 3 of 3 on this code challenge and am not sure what I am missing here. Everything up to here seemed pretty straightforward, but I can't seem to get past this. Any help would be awesome.

Andrew McCormick
Andrew McCormick
17,730 Points

CJ, please show the code that you are trying and that is not working. thanks Posting code to forum

1 Answer

Johanna Myers
Johanna Myers
15,172 Points

If it's the one I think you're referring to I just figured it out:

The challenge asked you to create a function called add_options_page() and echo out "Welcome to our plugin settings page." but what works is if you name the function my_plugin_options_page(). I think they should re-word the question.