powerbuoy/sleek-settings

Adds an options page to the admin (Settings -> Sleek) with some built-in settings.

v1.2.2 2021-12-10 13:06 UTC

This package is auto-updated.

Last update: 2024-04-10 18:41:00 UTC


README

Packagist GitHub license GitHub issues GitHub forks GitHub stars

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