public function get_configurable_capability_groups($capability_groups) { $capability_groups = parent::get_configurable_capability_groups($capability_groups); $post_type = $this->get_friendly_post_type(); if (isset($capability_groups[$post_type])) { $capability_groups[$post_type]['groups']['update-content'] = array('group_name' => __('Content update (from front-office)', 'cuar'), 'capabilities' => array($post_type . '_update_any_content' => __('Update any content from front office', 'cuar'), $post_type . '_update_authored_content' => __('Update authored content', 'cuar'), $post_type . '_update_owned_content' => __('Update owned content', 'cuar'))); $capability_groups[$post_type]['groups']['delete-content'] = array('group_name' => __('Content removal (from front-office)', 'cuar'), 'capabilities' => array($post_type . '_delete_any_content' => __('Delete any content from front office', 'cuar'), $post_type . '_delete_authored_content' => __('Delete authored content', 'cuar'), $post_type . '_delete_owned_content' => __('Delete owned content', 'cuar'))); } return $capability_groups; }
public function get_configurable_capability_groups($capability_groups) { $capability_groups = parent::get_configurable_capability_groups($capability_groups); $post_type = $this->get_friendly_post_type(); if (isset($capability_groups[$post_type])) { $capability_groups[$post_type]['groups']['create-content'] = array('group_name' => __('Content creation (from front-office)', 'cuar'), 'capabilities' => array($post_type . '_create_content' => __('Create content from front office', 'cuar'), $post_type . '_create_bypass_moderation' => __('Bypass moderation (content is automatically published)', 'cuar'))); } return $capability_groups; }