bbp_get_super_stickies

Return topics stuck to front page of the forums.

Description

(array) bbp_get_super_stickies(); 

Returns (array)

IDs of super sticky topics


Usage

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

Defined (1)

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

/includes/topics/functions.php  
  1. function bbp_get_super_stickies() { 
  2. $stickies = get_option( '_bbp_super_sticky_topics', array() ); 
  3. $stickies = ( empty( $stickies ) || !is_array( $stickies ) ) ? array() : $stickies; 
  4.  
  5. return apply_filters( 'bbp_get_super_stickies', $stickies );