Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
Horttcore committed Jan 26, 2019
2 parents 1cb353c + c2bfb0a commit 8f43517
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ A helper package for working with the WordPress Customizer

### Basics

#### Configuration
```php
<?php
use Horttcore\Customizer\Manager;

(new Manager)
Expand All @@ -24,8 +26,14 @@ use Horttcore\Customizer\Manager;
->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
<?php
get_theme_mod('my-color)
```

## Changelog
Expand Down

0 comments on commit 8f43517

Please sign in to comment.