MKP Base Argument Tester

Shortcode arguments can take multiple forms:

  • As a single value
  • As code=value
  • As a list of code-value pairs ‘option=verbose,log_file+’my.log’

Single Value

Single values like “verbose” have an implied value of “true”; so ‘verbose’ is treated as ‘verbose=true’. All action codes are expressed as a single value (e.g. list or class=”mkp_u”>clear_diagnostics).


When a code requires a value like the message code, it must be expressed as message=”some message”

List of Code/Value pairs

There is one particularly complex code that processes multiple sets of code=value pairs in a single code. That is the option shortcode. Here is an example of it:

mkp_base option=show_all_igroups+false,function+’my_handler’ set_option show_options

Same as:
mkp_base option=show_all_igroups+false set_option
mkp_base option=function+’my_handler’ set_option show_options

In this example, we set the ‘show_all_igroups’ option to false and the handler function value to ‘my_handler’.


[mkp_base option=verbose set_option clear_diagnostics]
[mkp_base show_diagnostics]
[mkp_base message=’my message’ log show_diagnostics]
[mkp_base option=show_all_igroups+false,function+’my_handler’ set_option show_options]
[mkp_base reset_options option=verbose set_option]