This plugin currently performs the following changes to the REST API:
- Registers a field,
ct_raw
, containing raw un-rendered post data, with shortcodes, to each post on/wp/v2/posts
- Registers a new endpoint
/centraltimes/v1/shortcodes
, which returns an array of shortcode names. - Registers a new endpoint
/wp/v2/staff_profile
for the SNOstaff_profile
custom post type. - Registers a new endpoint
/centraltimes/v1/ngg-gallery/(?P<id>\d+)
, to return NextGEN gallery image data. - Registers a new endpoint
/centraltimes/v1/sno-gallery/(?P<ids>(\d+,*)+)
, to return SNO gallery image data. - Registers a new endpoint
/centraltimes/v1/rules
endpoint to blacklist COVID-19 content due to app store restrictions. - Registers metas of
post
(endpointposts
in namespacewp/v2
):writer
,sno_deck
,jobtitle
,video
, &videographer
to REST fieldsct_writer
,ct_subtitle
,ct_jobtitle
,ct_video
, &ct_videographer
, respectively. - Registers custom taxonomies at the endpoints
/wp/v2/staff_year
and/wp/v2/staff_name
, forstaff_year
andstaff_name
respectively.
- Added hardcoded
/centraltimes/v1/rules
endpoint to blacklist COVID-19 content due to app store restrictions.
- Fixed bug that left out the Editorials tab category.
- Project has been renamed from
wp_ct_rest_api
towp_centraltimes
- Registered a new endpoint
/centraltimes/v1/sno-gallery/(?P<ids>(\d+,*)+)
, to return SNO gallery image data
- Registered a new endpoint
/centraltimes/v1/ngg-gallery/(?P<id>\d+)
, to return gallery image data - Modified
/centraltimes/v1/shortcodes
to return an array of shortcode names instead of shortcode keys
- Metas registered in v0.5.0 did not actually exist. Removed those registrations, and fixed behavior by registering
metas of
post
(endpointposts
in namespacewp/v2
):writer
,sno_deck
,jobtitle
,video
, &videographer
to REST fieldsct_writer
,ct_subtitle
,ct_jobtitle
,ct_video
, &ct_videographer
, respectively.
- Register post metas
jobtitle
,name
,schoolyear
,sno_deck
,staffposition
, andwriter
as fields under eachstaff_profile
entry.
- Register custom taxonomies at the endpoints
/wp/v2/staff_year
and/wp/v2/staff_name
, forstaff_year
andstaff_name
respectively.
- Register a new endpoint
/wp/v2/staff_profile
for the SNOstaff_profile
custom post type.
- Register a new endpoint
/centraltimes/v1/shortcodes
, which describes the internalshortcode_tags
global variable. (shortcode names are the keys)
- Register a field,
ct_raw
, containing raw un-rendered post data, with shortcodes, to each post on/wp/v2/posts