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_profilefor the SNOstaff_profilecustom 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/rulesendpoint to blacklist COVID-19 content due to app store restrictions. - Registers metas of
post(endpointpostsin namespacewp/v2):writer,sno_deck,jobtitle,video, &videographerto REST fieldsct_writer,ct_subtitle,ct_jobtitle,ct_video, &ct_videographer, respectively. - Registers custom taxonomies at the endpoints
/wp/v2/staff_yearand/wp/v2/staff_name, forstaff_yearandstaff_namerespectively.
- Added hardcoded
/centraltimes/v1/rulesendpoint 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_apitowp_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/shortcodesto 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(endpointpostsin namespacewp/v2):writer,sno_deck,jobtitle,video, &videographerto REST fieldsct_writer,ct_subtitle,ct_jobtitle,ct_video, &ct_videographer, respectively.
- Register post metas
jobtitle,name,schoolyear,sno_deck,staffposition, andwriteras fields under eachstaff_profileentry.
- Register custom taxonomies at the endpoints
/wp/v2/staff_yearand/wp/v2/staff_name, forstaff_yearandstaff_namerespectively.
- Register a new endpoint
/wp/v2/staff_profilefor the SNOstaff_profilecustom post type.
- Register a new endpoint
/centraltimes/v1/shortcodes, which describes the internalshortcode_tagsglobal 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