bbp_get_topic_caps

Return topic capabilities.

Description

(array) bbp_get_topic_caps(); 

Returns (array)

Topic capabilities


Usage

  1. if ( !function_exists( 'bbp_get_topic_caps' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/topics/capabilities.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_get_topic_caps(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/topics/capabilities.php  
  1. function bbp_get_topic_caps() { 
  2. return apply_filters( 'bbp_get_topic_caps', array ( 
  3. 'edit_posts' => 'edit_topics',  
  4. 'edit_others_posts' => 'edit_others_topics',  
  5. 'publish_posts' => 'publish_topics',  
  6. 'read_private_posts' => 'read_private_topics',  
  7. 'read_hidden_posts' => 'read_hidden_topics',  
  8. 'delete_posts' => 'delete_topics',  
  9. 'delete_others_posts' => 'delete_others_topics' 
  10. ) );