rcp_bbp_get_metabox_fields

The Restrict Content Pro - bbPress rcp bbp get metabox fields function.

Description

rcp_bbp_get_metabox_fields(); 

Usage

  1. if ( !function_exists( 'rcp_bbp_get_metabox_fields' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'restrict-content-pro-bbpress/includes/metaboxes.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = rcp_bbp_get_metabox_fields(); 
  7.  

Defined (1)

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

/includes/metaboxes.php  
  1. function rcp_bbp_get_metabox_fields() { 
  2.  
  3. $fields = array( 
  4. array( 
  5. 'name' => __( 'Paid Only?', 'rcp_bbpress' ),  
  6. 'id' => '_is_forum_paid',  
  7. 'type' => 'checkbox',  
  8. 'desc' => __( 'Restrict this forum to paid users only', 'rcp_bbpress' ) 
  9. ),  
  10. array( 
  11. 'name' => __( 'Access Level', 'rcp' ),  
  12. 'id' => 'rcp_access_level',  
  13. 'type' => 'select',  
  14. 'desc' => __( 'Choose the access level required to see this content. The access level is determined by the subscription the member is subscribed to.', 'rcp' ),  
  15. 'options' => rcp_get_access_levels(),  
  16. 'std' => 'All' 
  17. ),  
  18. array( 
  19. 'name' => __( 'Subscription Level', 'rcp' ),  
  20. 'id' => 'rcp_subscription_level',  
  21. 'type' => 'levels',  
  22. 'desc' => __( 'Choose the subscription levels allowed to view this content.', 'rcp' ),  
  23. 'std' => 'All' 
  24. ); 
  25.  
  26. return apply_filters( 'rcp_bbp_get_metabox_fields', $fields ); 
  27.