We keep all mkp_base options in the WordPress options table. In a multisite network, each site has its own options table.
This code tests that options can be read, written and re-read properly with a variety of option value data types:
- Boolean True
- Boolean False
- Integer
- String
- Simple Array
- Associative Array
- Nested Associative Array
In this shortcode, we clear the diagnostics table and any pending notifications, do the test and then display any diagnostic output.
mkp_base clear_notifications clear_diagnostics options_test show_diagnostics
Output:
[mkp_base clear_notifications clear_diagnostics options_test show_diagnostics]