Add checkbox with user meta

Hi all, I’m trying to add a feature where its literally just a simple checkbox on a page which shows in user meta. so like if unchecked its just empty or says no, if checked it says yes. I’m guessing I’ll have to add a metakey for users and then have the checkbox assigned to it somehow and change its value. I dont know how to do either! Let me know if this makes sense, if not i can try to clarify.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer