bbp_topic_widget_title

  • apply_filters( 'bbp_topic_widget_title', $instance['title'] )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-widgets.php :: Trac Source Line: 535
      	 * @uses bbp_get_topic_last_active_time() To get the topic last active
      	 *                                         time
      	 * @uses bbp_get_topic_id() To get the topic id
      	 * @uses bbp_get_topic_reply_count() To get the topic reply count
      	 */
      	function widget( $args, $instance ) {
      
      		extract( $args );
      
      		$title        = apply_filters( 'bbp_topic_widget_title', $instance['title'] );
      		$max_shown    = !empty( $instance['max_shown']    ) ? (int) $instance['max_shown'] : 5;
      		$show_date    = !empty( $instance['show_date']    ) ? 'on'                         : false;
      		$parent_forum = !empty( $instance['parent_forum'] ) ? $instance['parent_forum']    : 'any';
      		$pop_check    = ( $instance['pop_check'] < $max_shown || empty( $instance['pop_check'] ) ) ? -1 : $instance['pop_check'];
      
      		// Query defaults
      		$topics_query = array(
      			'author'         => 0,
      			'post_parent'    => $parent_forum,
      			'posts_per_page' => $max_shown > $pop_check ? $max_shown : $pop_check,
      

Comments are closed.