Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress How to Build a WordPress Plugin Building a WordPress Plugin Settings Page CRUD with the WordPress Options Table

suyash patankar
suyash patankar
2,310 Points

Does update_option() create database entry? Need help to understand it.

I read the codex also checked phpmyadmin but I could not understand how exactly does it work?

Where are we saving the username so that we are getting mike the frog profile in admin dashboard?

I can not see any wptreehouse_badges in options page. Please elaborate how it exactly works.

Have many questions about this video.

1 Answer

Anthony Attard
Anthony Attard
43,915 Points

update_option() will update if it already exists and will create it if it does not already exist.