Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Horttcore authored May 24, 2019
1 parent 49573f4 commit 152e397
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,24 @@ use Horttcore\Customizer\Customize;
->register();
```

#### Add a description

```php
<?php
use Horttcore\Customizer\Customize;

(new Customize)
->panel( 'My Panel' )
->section( 'My Section' )
->text( 'my-text', 'Text', [], ['description' => __('This is awesome', 'textdomain')] )
->register();
```

#### Retrieving data

```php
<?php
get_theme_mod('my-color);
get_theme_mod('my-text');
```

## Changelog
Expand Down

0 comments on commit 152e397

Please sign in to comment.