Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
powerbuoy committed Mar 6, 2020
1 parent fa9f534 commit fd4dee6
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
Adds an options page to the admin with a few default fields. Also provides a simple API for adding more settings to the options page through `Sleek\Settings\add_setting($name, $type, $label)` and `Sleek\Settings\get_setting($name)`.
# Sleek Settings

Adds an options page to the admin (Settings -> Sleek) with two fields: `head_code` and `foot_code` which allows you to add arbitrary HTML to `<head>` and just before `</body>`. Also provides a simple API to add more settings fields to the options page.

## Theme Support

N/A

## Hooks

N/A

## Functions

### `Sleek\Settings\add_setting($name, $type, $label)`

Add a new settings field to the options page.

### `Sleek\Settings\get_setting($name)`

Get value of setting.

## Classes

N/A

0 comments on commit fd4dee6

Please sign in to comment.