bp_get_blog_latest_post_content()
Return the content of the latest post on the current blog in the loop.
Description Description
Return Return
(string) Content of the blog's latest post.
Source Source
File: bp-blogs/bp-blogs-template.php
function bp_get_blog_latest_post_content() {
global $blogs_template;
$retval = '';
if ( ! empty( $blogs_template->blog->latest_post ) && ! empty( $blogs_template->blog->latest_post->post_content ) )
$retval = $blogs_template->blog->latest_post->post_content;
/**
* Filters the content of the latest post on the current blog in the loop.
*
* @since 1.7.0
*
* @param string $retval Content of the latest post on the current blog in the loop.
*/
return apply_filters( 'bp_get_blog_latest_post_content', $retval );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.7.0 | Introduced. |