bbp_replies_widget_title

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

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-widgets.php :: Trac Source Line: 731
      	 * @uses bbp_get_reply_excerpt() To get the reply excerpt
      	 * @uses bbp_get_reply_topic_title() To get the reply topic title
      	 * @uses get_the_date() To get the date of the reply
      	 * @uses get_the_time() To get the time of the reply
      	 */
      	function widget( $args, $instance ) {
      
      		extract( $args );
      
      		$title     = apply_filters( 'bbp_replies_widget_title', $instance['title'] );
      		$max_shown = !empty( $instance['max_shown'] ) ? $instance['max_shown'] : '5';
      		$show_date = !empty( $instance['show_date'] ) ? 'on'                   : false;
      
      		// Query defaults
      		$replies_query = array(
      			'post_status'    => join( ',', array( bbp_get_public_status_id(), bbp_get_closed_status_id() ) ),
      			'posts_per_page' => $max_shown,
      			'order'          => 'DESC'
      		);
      

Comments are closed.