From c2bfb0a4aeb8280fe0c004cdb76ab56458ca89ac Mon Sep 17 00:00:00 2001 From: Ralf Hortt Date: Sun, 27 Jan 2019 00:18:09 +0100 Subject: [PATCH] Update docs --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4544199..b6d3a04 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,9 @@ A helper package for working with the WordPress Customizer ### Basics +#### Configuration ```php +radio( 'my-radio', 'Radio', ['option1' => 'Option 1', 'option2' => 'Option 2'] ); ->select( 'my-select', 'Select', ['option1' => 'Option 1', 'option2' => 'Option 2'] ); ->text( 'my-text', 'Text' ) - ->textarea( 'my-textarea', 'Textare' ) - ->url( 'my-url', 'Url' ) + ->textarea( 'my-textarea', 'Textarea' ) + ->url( 'my-url', 'Url' ); +``` + +#### Retrieving data +```php +