WordPress.org

Making WordPress.org


Ignore:
Timestamp:
11/27/17 23:56:25 (3 weeks ago)
Author:
coreymckrill
Message:

WordCamp Post Type: Change capability type for the post Type

Instead of the default edit_posts etc., this sets the capability
type for WCPT to wordcamp, so the caps become edit_wordcamps etc.
This allows for more granular permissions for content editing and
supports the new WordCamp Wrangler subrole.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-loader.php

    r4804 r6183  
    103103            'show_ui'               => true, 
    104104            'can_export'            => true, 
    105             'capability_type'       => 'post', 
     105            'capability_type'       => WCPT_POST_TYPE_ID, 
     106            'map_meta_cap'          => true, 
    106107            'hierarchical'          => false, 
    107108            'has_archive'           => true, 
Note: See TracChangeset for help on using the changeset viewer.