What is the use of get_option method

Question

I am a new learner of WordPress plugin. recently I came across a method get_option(). When I pass the page parameter of add_settings_field() function then it outputs all the input fields (checkboxes) of that page as true if checkbox is checked and false if unchecked if checkbox is unchecked.

I didn’t understand how does the function know that whether a checkbox is checked or not. May be I’m not able to focus the part of code where this is being decided.

I will be grateful if anyone explains to me the use of the function and how it works?

0
2 years 2019-11-25T11:03:40-05:00 0 Answers 73 views 0