Skip to content

Commit

Permalink
Updating docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbitron committed Jul 8, 2014
1 parent 7465bec commit 2de4de8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,19 @@ Creates a new settings [option_group](http://codex.wordpress.org/Function_Refere
* `$settings_file` - path to the settings file
* `$option_group` - optional "option_group" override (by default this will be set to the basename of the settings file)

wpsf_get_option_group( $settings_file )
<pre>wpsf_get_option_group( $settings_file )</pre>

Converts the settings file name to option group id

* `$settings_file` - path to the settings file

wpsf_get_settings( $option_group )
<pre>wpsf_get_settings( $option_group )</pre>

Get an array of settings by the option group id

* `$option_group` - option group id

wpsf_get_setting( $option_group, $section_id, $field_id )
<pre>wpsf_get_setting( $option_group, $section_id, $field_id )</pre>

Get a setting from an option group

Expand All @@ -162,7 +162,7 @@ Get a setting from an option group

Note: You can use `wpsf_get_option_group()` to get the option group id from the settings file path.

wpsf_delete_settings( $option_group )
<pre>wpsf_delete_settings( $option_group )</pre>

Delete all the saved settings from a option group

Expand Down

0 comments on commit 2de4de8

Please sign in to comment.