get_option_checkbox - adds checkboxes in the Frontend Settings
get_option_checkbox is the function which allows you to display checkboxes in the Settings page of the Frontend component. You can add as many checkboxes as you need. This function has one parameter and is easy to be used.
To display a checkbox in the Settings pages, you have to use this code:
get_option_checkbox('checkbox original slug');
Then, where you need you can add this code to see if the checkbox is checked:
get_option('checkbox original slug');
For more details, please read first thisĀ https://www.midrub.com/articles/how-to-add-new-settings-pages-for-the-frontend-features
Suggested Articles
- get_option_checkbox - adds checkboxes in the Frontend Settings
- How to add a media option in the Frontend's settings
- How to add a textarea option in the Frontend's settings
- How to add a dropdown option in the Frontend's settings
- How to add new Settings pages for the Frontend's features
- Midrub Frontend Introduction
- Components Introduction