1. Home
  2. Docs
  3. Function Reference
  4. Classes
  5. Admin
  6. MVC_Admin_Settings_Helper
  7. get_settings_by_prefix_fn()

get_settings_by_prefix_fn()

Get rows from a Simpods MVC settings table by prefix.

Copy to Clipboard

Parameters

$table_str

Name of table (without table_prefix)

$prefix_str

Prefix of setting name

$user_int

Not used (for user settings only)

Return

array

Associate array of row objects keyed by name

Example

Get all settings from theĀ simpods_example_settings table that have a name beginning with default_

Copy to Clipboard

Location

This function can be found here: