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:
Stefan Kalscheuer 2020-04-28 18:21:16 +02:00
parent 4a1197af28
commit 04131a1d99
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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 );