'
+1-800-870-4611 outreach@mkp.org

MKP Base Use Custom Handler Function

You can use your own diagnostic message handler by creating a function that takes a message string as it’s sole argument. This is a bit tricky, so it’s a good idea to clear the diagnostics before resetting the option values and then show and clear it afterwards.

mkp_base clear_diagnostics
mkp_base verbose option=function set_option
mkp_base show_diagnostics mkp_base clear_diagnostics

Output:


MKP Plugins: Setting Option verbose = [true]

MKP Plugins: Setting Option option = [function]


Errors found in shortcode - cannot proceed.