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 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.