Skip to content
Ghost1227 edited this page May 5, 2016 · 1 revision

The following methods are available for working with your settings:

get_option( $key, $default );

Arguement Description
$key string The settings key to retrieve
$default mixed A default value to return if the key is unavailable

update_option( $key, $value );

Arguement Description
$key string The settings key to update
$value mixed The new value for this key. If you leave this empty or set it to false, the key will be deleted!

delete_option( $key );

Arguement Description
$key string The settings key to delete

get_settings();

Retrieves all settings, does not take an arguement.

Comments

Beyond the above listed methods, there are numerous hooks scattered throughout the library. Please feel free to tear it appart, figure out how it works, and improve it if you can!