Changeset 5522 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
- Timestamp:
- 05/30/2017 06:12:29 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
r5509 r5522 1427 1427 1428 1428 wcorg_register_meta_only_on_endpoint( 'post', $public_session_fields, '/wp-json/wp/v2/sessions/' ); 1429 1430 $public_sponsor_fields = array( 1431 '_wcpt_sponsor_website' => array( 1432 'single' => true, 1433 ) 1434 ); 1435 1436 wcorg_register_meta_only_on_endpoint( 'post', $public_sponsor_fields, '/wp-json/wp/v2/sponsors/' ); 1429 1437 } 1430 1438 … … 2023 2031 'labels' => $labels, 2024 2032 'rewrite' => array( 'slug' => 'sponsor', 'with_front' => false ), 2025 'supports' => array( 'title', 'editor', 'revisions', 'thumbnail' ),2033 'supports' => array( 'title', 'editor', 'revisions', 'thumbnail', 'custom-fields' ), 2026 2034 'menu_position' => 21, 2027 2035 'public' => true, … … 2032 2040 'query_var' => true, 2033 2041 'menu_icon' => 'dashicons-heart', 2042 'show_in_rest' => true, 2043 'rest_base' => 'sponsors', 2034 2044 ) ); 2035 2045
Note: See TracChangeset
for help on using the changeset viewer.