bbp_get_default_options

Get the default site options and their values.

Description

(array) bbp_get_default_options(); 

These option

Returns (array)

Filtered option names and values


Usage

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

Defined (1)

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

/includes/core/options.php  
  1. function bbp_get_default_options() { 
  2.  
  3. // Default options 
  4. return apply_filters( 'bbp_get_default_options', array( 
  5.  
  6. /** DB Version ********************************************************/ 
  7.  
  8. '_bbp_db_version' =>bbpress)->db_version,  
  9.  
  10. /** Settings **********************************************************/ 
  11.  
  12. '_bbp_edit_lock' => 5, // Lock post editing after 5 minutes 
  13. '_bbp_throttle_time' => 10, // Throttle post time to 10 seconds 
  14. '_bbp_enable_favorites' => 1, // Favorites 
  15. '_bbp_enable_subscriptions' => 1, // Subscriptions 
  16. '_bbp_allow_anonymous' => 0, // Allow anonymous posting 
  17. '_bbp_allow_global_access' => 1, // Users from all sites can post 
  18. '_bbp_allow_revisions' => 1, // Allow revisions 
  19. '_bbp_allow_topic_tags' => 1, // Allow topic tagging 
  20. '_bbp_allow_threaded_replies' => 0, // Allow threaded replies 
  21. '_bbp_allow_search' => 1, // Allow forum-wide search 
  22. '_bbp_thread_replies_depth' => 2, // Thread replies depth 
  23. '_bbp_use_wp_editor' => 1, // Use the WordPress editor if available 
  24. '_bbp_use_autoembed' => 0, // Allow oEmbed in topics and replies 
  25. '_bbp_theme_package_id' => 'default', // The ID for the current theme package 
  26. '_bbp_default_role' => bbp_get_participant_role(), // Default forums role 
  27. '_bbp_settings_integration' => 0, // Put settings into existing admin pages 
  28.  
  29. /** Per Page **********************************************************/ 
  30.  
  31. '_bbp_topics_per_page' => 15, // Topics per page 
  32. '_bbp_replies_per_page' => 15, // Replies per page 
  33. '_bbp_forums_per_page' => 50, // Forums per page 
  34. '_bbp_topics_per_rss_page' => 25, // Topics per RSS page 
  35. '_bbp_replies_per_rss_page' => 25, // Replies per RSS page 
  36.  
  37. /** Page For **********************************************************/ 
  38.  
  39. '_bbp_page_for_forums' => 0, // Page for forums 
  40. '_bbp_page_for_topics' => 0, // Page for forums 
  41. '_bbp_page_for_login' => 0, // Page for login 
  42. '_bbp_page_for_register' => 0, // Page for register 
  43. '_bbp_page_for_lost_pass' => 0, // Page for lost-pass 
  44.  
  45. /** Forum Root ********************************************************/ 
  46.  
  47. '_bbp_root_slug' => 'forums', // Forum archive slug 
  48. '_bbp_show_on_root' => 'forums', // What to show on root (forums|topics) 
  49. '_bbp_include_root' => 1, // Include forum-archive before single slugs 
  50.  
  51. /** Single Slugs ******************************************************/ 
  52.  
  53. '_bbp_forum_slug' => 'forum', // Forum slug 
  54. '_bbp_topic_slug' => 'topic', // Topic slug 
  55. '_bbp_reply_slug' => 'reply', // Reply slug 
  56. '_bbp_topic_tag_slug' => 'topic-tag', // Topic tag slug 
  57.  
  58. /** User Slugs ********************************************************/ 
  59.  
  60. '_bbp_user_slug' => 'users', // User profile slug 
  61. '_bbp_user_favs_slug' => 'favorites', // User favorites slug 
  62. '_bbp_user_subs_slug' => 'subscriptions', // User subscriptions slug 
  63. '_bbp_topic_archive_slug' => 'topics', // Topic archive slug 
  64. '_bbp_reply_archive_slug' => 'replies', // Reply archive slug 
  65.  
  66. /** Other Slugs *******************************************************/ 
  67.  
  68. '_bbp_view_slug' => 'view', // View slug 
  69. '_bbp_search_slug' => 'search', // Search slug 
  70.  
  71. /** Topics ************************************************************/ 
  72.  
  73. '_bbp_title_max_length' => 80, // Title Max Length 
  74. '_bbp_super_sticky_topics' => '', // Super stickies 
  75.  
  76. /** Forums ************************************************************/ 
  77.  
  78. '_bbp_private_forums' => '', // Private forums 
  79. '_bbp_hidden_forums' => '', // Hidden forums 
  80.  
  81. /** BuddyPress ********************************************************/ 
  82.  
  83. '_bbp_enable_group_forums' => 1, // Enable BuddyPress Group Extension 
  84. '_bbp_group_forums_root_id' => 0, // Group Forums parent forum id 
  85.  
  86. /** Akismet ***********************************************************/ 
  87.  
  88. '_bbp_enable_akismet' => 1 // Users from all sites can post 
  89.  
  90. ) );