bp_forums_enable_global_directory_stickies

Should sticky topics be broken out of regular topic order on forum directories?.

Description

bp_forums_enable_global_directory_stickies(); 

Defaults to false. Define BP_FORUMS_ENABLE_GLOBAL_DIRECTORY_STICKIES, or filter bp_forums_enable_global_directory_stickies,, to change this behavior.


Usage

  1. if ( !function_exists( 'bp_forums_enable_global_directory_stickies' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bp-forums-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_forums_enable_global_directory_stickies(); 
  7.  

Defined (1)

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

/bp-forums/bp-forums-functions.php  
  1. function bp_forums_enable_global_directory_stickies() { 
  2.  
  3. /** 
  4. * Filters whether or not sticky topics should be broken out of regular topic order. 
  5. * @since 1.5.0 
  6. * @param bool $value Whether or not to break out of topic order. 
  7. */ 
  8. return apply_filters( 'bp_forums_enable_global_directory_stickies', defined( 'BP_FORUMS_ENABLE_GLOBAL_DIRECTORY_STICKIES' ) && BP_FORUMS_ENABLE_GLOBAL_DIRECTORY_STICKIES );