The settings are stored in the wp_options or wp_<site_id>_options for SaaS (multisite) using serialized strings:

csl-slplus-options
csl-slplus-options_nojs
slp-experience
slp-power
slp-premier-options

Sprocket AI Agent Summary (November 2026)

The short version

SLP’s settings are grouped collections of values, not generally one wp_options row per setting. The base plugin loads its two collections into memory, passes their values through SmartOptions, and saves the collections back through WordPress’s Options API. The add-ons also have their own named option collections and defaults.

The important distinction is that the option row is the storage container; SmartOptions is a processing layer over individual settings. A setting’s effective value can depend on defaults, validation, callbacks, add-on behavior, and potentially the particular interface using it—not just the raw database value.

I checked the local plugin source and two internal documentation pages. The local RAG service was healthy, but its query did not return within the time available, so the findings below are grounded in source and documentation rather than a completed RAG answer. The local checkouts may not represent the currently deployed revisions.

The option groups you identified

option_nameWhat the code shows
csl-slplus-optionsBase-plugin options held in $slplus->options; this is the JS-designated group.
csl-slplus-options_nojsBase-plugin options held in $slplus->options_nojs; the base class describes these as options not localized to slp.js.
slp-experienceExperience add-on’s named option collection.
slp-powerPower add-on’s named option collection.
slp-premier-optionsPremier add-on’s named option collection.

The JS/no-JS distinction is about whether the setting is intended for the JavaScript-facing option group. It does not mean the first row is JavaScript code or that every value in it is necessarily consumed by every frontend script.

The manager derives the two base names from SLPLUS_PREFIX and maps js/default and nojs to them. See SLP_WPOption_Manager.php and the base option declarations. The add-on names are declared by Experience, Power, and Premier.

How base settings are loaded

In the inspected code, SLP_SmartOptions::slp_specific_setup():

  1. Preserves the initial in-memory options and options_nojs arrays as defaults.
  2. Reads each corresponding WordPress option through SLP_WPOption_Manager.
  3. If the returned value is an array, walks its entries through the appropriate set_valid_options or set_valid_options_nojs path.
  4. Marks setup complete and runs map recentering and setup hooks.

The source explicitly describes the database collections as serialized options; WordPress’s Options API handles the array serialization and deserialization. See SLP_SmartOptions.php.

This is why an absent key does not automatically mean “no value”: the running application may have a default in its in-memory definitions. The internal SmartOptions documentation describes the class as handling nearly all base-plugin settings and documents accessors such as get_ValueOf() and is_true().

How changes are saved

The inspected legacy admin save path (calls \SLP_AJAX::slp_change_option ) does more than write submitted POST data directly:

  1. Checks the slp_ajax admin nonce.
  2. Processes checkboxes for the current admin page.
  3. Walks submitted options and options_nojs through the respective validation setters.
  4. Executes change callbacks.
  5. Saves both base groups, because callbacks can affect either group.

Programmatic SmartOptions::set() also chooses a group using the setting’s use_in_javascript property; with writeToDB enabled, it executes callbacks and persists both groups. See SmartOptions save and set.

SLP_WPOption_Manager::update_wp_option() compares serialized old and new values, skips an unchanged value, fires slplus_update_wp_option, then calls WordPress update_option(). Thus, a single setting change normally results in updating its containing collection, rather than updating an independent option row. See the option manager. This is what eventually writes to the wp_options table.

There are multiple entry points. For example, the inspected REST import path takes settings from JSON, passes each through both validation paths, executes callbacks, and saves both base collections. I have not traced every REST route or UI save path, so that should not be read as a guarantee that all interfaces have identical handling. Source: SLP_REST_Handler.php.ß

Lance’s Notes…

  • slp_change_option is the AJAX action that is listened to in WordPress
  • wp-content/plugins/store-locator-plus/js/admin.js calls slp_change_option via AJAX in
    • change_option which is only called by…
      • jQuery(‘.input-group .wp-media-buttons .insert-media’).on(
        ‘click’, =>
        • SLP_Admin_icons.create_media_frame
      • jQuery(‘#slp_persistent_notice .notice-dismiss’).on(
        ‘click’ =>
        • AdminUI.dismiss_persistent_notice
      • \SLP_Settings_icon::get_content : used for any SLP Setting of type “icon”
        • \SLP_Admin_UI::create_string_icon_selector uses…
          • jQuery(‘.slp_icon_selector’).on(‘click’….)

How add-on settings differ

The shared add-on base class initializes its defaults, reads the add-on’s named option, and—when the database value is an array—merges defaults and then stored values into the add-on’s in-memory options. In that merge, stored values take precedence over matching defaults. See add-on initialization.

The code also contains add-on saves through the same option manager, using the add-on’s option_name. I would not assume, however, that every current setting visible under an add-on’s UI necessarily lives only in its namesake row: the base SmartOptions system, legacy code, and cross-plugin behavior need to be checked for the specific setting.

UI versus storage

The internal Settings Interface Architecture describes the settings interface as the legacy administrative framework presenting the customer’s configuration, including on SaaS. It documents a mixture of PHP-rendered settings/forms and React components such as the header. That supports treating presentation, setting metadata and validation, and persistence as separate layers—a React conversion of a settings page need not imply a change in where values are stored.

For SaaS, SLP runs on WordPress multisite. The manager uses ordinary get_option() and update_option(), so these calls operate in the current site’s WordPress context; identifying the correct customer site/blog context matters when inspecting a customer’s options.

Practical implications

  • Avoid editing serialized option values with raw SQL. Use WordPress APIs or the application’s setting path so serialization remains valid; where applicable, SmartOptions validation and callbacks also matter.
  • Read the whole setting path before changing a value. A direct update_option() can bypass application validation and change callbacks even if it successfully writes the array.
  • A database snapshot alone may not show the effective configuration. Defaults and application processing can fill or modify values at runtime.
  • The five rows are important, but not necessarily exhaustive. The manager supports arbitrary option names, and the code also reads separately named options. A complete inventory would require tracing the particular settings and installed modules.

Leave a Reply