'

MKP Base Options

Options control the behavior of the code and remain in effect over time. They are stored in the WordPress wp_options table. They can be modified but not created or deleted. Here are the options and how they impact the code:

  • enabled = {true | false}: enables or disables the mkp_base plugin. When disabled, no shortcodes will work.
  • verbose = {true | false}: controls writing of diagnostic information into the diagnostic log.
  • logfile = : Name of file to write diagnostic messages into
  • handler = {: This array has three values that define what code handles diagnostic messages
    • function = false: This is the name of a user-defined function that will receive diagnostic messages.
    • class = MKP_Base: This is the name of the class that contains the method that will handle diagnostic messages.
    • method = file_logger: This is the name of the method that handles diagnostic messages.

    }

  • show_all_igroups = {true | false}: If true, all I-groups will be displayed on maps. If false, only I-groups that have declared themselves public will be shown on maps
  • show_loggedin_igroups = {true | false}: If true…???
  • source = MKP Plugins:: This is the string that will prepend each message written to the diagnostic log file.

Here are some examples of their use:

mkp_base option=show_all_igroups+false,function+’my_handler’ set_option show_options
mkp_base reset_options <– so we can still capture diagnostics

Output:

MKP Plugins: Setting Option show_all_igroups = [false]

MKP Plugins: Setting Option function = [default_diagnostic_handler]

MKP Base Options:
  • enabled = true
  • verbose = true
  • do_backtrace = 0
  • logfile = MKP Plugins.log
  • handler = handler
    • class = MKP_Base
    • method = file_logger
  • show_all_igroups = false
  • show_loggedin_igroups = false
  • source = MKP Plugins:
  • autoload = autoload
    • communities = false
    • contacts = false
    • igroups = false
    • mapper = false
  • table_name_prefix = mkpusa_
  • options_name_prefix = mkpusa_29_
  • google_api_key_name = mkp_google_api_key
  • google_api_key_value = AIzaSyCi8B3Z5SICnMBSYnhoNgZ3BaG8Lr_Of1k
  • loaded =
  • option = verbose

MKP Plugins: Options reset to their defualt values