Making WordPress.org


Ignore:
Timestamp:
03/30/2017 10:48:27 PM (7 years ago)
Author:
iandunn
Message:

WordCamp Post Types: Show Speaker and Sessions posts in the REST API

They were included in the v1 endpoints, which are now deprecated, so they should be available in v2 also.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php

    r4671 r5220  
    18681868            'query_var'         => true,
    18691869            'menu_icon'         => 'dashicons-megaphone',
     1870            'show_in_rest'      => true,
     1871            'rest_base'         => 'speakers',
    18701872        ) );
    18711873
     
    19001902            'query_var'         => true,
    19011903            'menu_icon'         => 'dashicons-schedule',
     1904            'show_in_rest'      => true,
     1905            'rest_base'         => 'sessions',
    19021906        ) );
    19031907
Note: See TracChangeset for help on using the changeset viewer.