bp_get_the_topic_time_since_last_post

  • apply_filters( 'bp_get_the_topic_time_since_last_post', bp_core_time_since( strtotime( $forum_template->topic->topic_time ) ) )

    Source Reference:

    • Component: BuddyPress :: bp-forums
      File: /bp-forums/bp-forums-template.php :: Trac Source Line: 767
      		return apply_filters( 'bp_get_the_topic_latest_post_excerpt', $post, $length );
      	}
      
      function bp_the_topic_time_since_last_post() {
      	echo bp_get_the_topic_time_since_last_post();
      }
      	function bp_get_the_topic_time_since_last_post() {
      		global $forum_template;
      
      		return apply_filters( 'bp_get_the_topic_time_since_last_post', bp_core_time_since( strtotime( $forum_template->topic->topic_time ) ) );
      	}
      
      function bp_the_topic_is_mine() {
      	echo bp_get_the_topic_is_mine();
      }
      	function bp_get_the_topic_is_mine() {
      		global $bp, $forum_template;
      
      		return $bp->loggedin_user->id == $forum_template->topic->topic_poster;
      	}
      

Comments are closed.