expose ticks through REST API (#7)
Tickers are already exposed for JS integration in Gutenberg. Now ticks themselves are also available for use with external systems.
This commit is contained in:
parent
4a1197af28
commit
04131a1d99
@ -84,6 +84,7 @@ caching time of 12 hours obviously makes no sense.
|
|||||||
* Requires PHP 5.6 or above
|
* Requires PHP 5.6 or above
|
||||||
* Use GMT for automatic updates
|
* Use GMT for automatic updates
|
||||||
* Gutenberg Block available
|
* Gutenberg Block available
|
||||||
|
* Ticks exposed through REST API
|
||||||
|
|
||||||
### 1.0.0 - 2018-11-02
|
### 1.0.0 - 2018-11-02
|
||||||
|
|
||||||
|
@ -165,6 +165,7 @@ class SCLiveticker {
|
|||||||
'supports' => array( 'title', 'editor', 'author' ),
|
'supports' => array( 'title', 'editor', 'author' ),
|
||||||
'taxonomies' => array( 'scliveticker_ticker' ),
|
'taxonomies' => array( 'scliveticker_ticker' ),
|
||||||
'has_archive' => true,
|
'has_archive' => true,
|
||||||
|
'show_in_rest' => true,
|
||||||
);
|
);
|
||||||
|
|
||||||
register_post_type( 'scliveticker_tick', $args );
|
register_post_type( 'scliveticker_tick', $args );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user