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

View File

@ -165,6 +165,7 @@ class SCLiveticker {
'supports' => array( 'title', 'editor', 'author' ),
'taxonomies' => array( 'scliveticker_ticker' ),
'has_archive' => true,
'show_in_rest' => true,
);
register_post_type( 'scliveticker_tick', $args );