Skip to content

Instantly share code, notes, and snippets.

@litzinger
Created July 16, 2012 14:09
Show Gist options
  • Select an option

  • Save litzinger/3122917 to your computer and use it in GitHub Desktop.

Select an option

Save litzinger/3122917 to your computer and use it in GitHub Desktop.
<?php
$this->EE->addon_settings = array(
1 => array( // site_id
'addon_name' => [json object]
),
2 => array(
'addon_name' => [json object]
)
);
// Get add-on settings with:
$settings = $this->EE->addon_settings->get('addon_name', $site_id /* optional, defaults to current site_id */);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment