Skip to content

Commit

Permalink
Add new methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
elvishp2006 committed Aug 30, 2018
1 parent 13b608e commit 203cda6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ composer require elvishp2006/carbon-field-rest-api-select

## Methods

### set_endpoint()
```set_endpoint```

```php
...
->set_endpoint( rest_url( 'wp/v2/posts' ) )
```

```set_endpoint_label_path``` | default: ```title.rendered```

```set_endpoint_value_path``` | default: ```id```

```set_endpoint_search_param``` | default: ```search```

0 comments on commit 203cda6

Please sign in to comment.