Changeset 7693 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-meetup/meetup-loader.php
- Timestamp:
- 09/21/2018 10:15:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-meetup/meetup-loader.php
r7690 r7693 165 165 166 166 /** 167 * Allow some site roles to see WordCamp posts.168 */169 public function register_post_capabilities() {170 $roles = array(171 'contributor',172 'author',173 'editor',174 'administrator',175 );176 177 foreach ( $roles as $role ) {178 get_role( $role )->add_cap( 'edit_' . Meetup_Application::POST_TYPE . 's' );179 }180 }181 182 /**183 167 * Get available post statuses 184 168 *
Note: See TracChangeset
for help on using the changeset viewer.