Читать книгу Professional WordPress Plugin Development - Brad Williams - Страница 88

Settings API Functions

Оглавление

The Settings API functions consist of three steps:

1 Tell WordPress the new settings you want it to manage for you. Doing so adds your settings into a list of authorized options (also known as whitelisting).

2 Define the settings (text areas, input boxes, and any HTML form element) and how they will be visually grouped together in sections.

3 Tell WordPress to display your settings in an actual form.

But first, you create a setting management page for your plugin.

Professional WordPress Plugin Development

Подняться наверх