bbp_reply_attributes_meta_box_discussion_reply_title( $title,  $post )

Set the ID if title is blank.

Description

Parameters

$title

(Required)

$post

(Required)

Return

(mixed)

Source

File: bp-forums/common/template.php

function bbp_reply_attributes_meta_box_discussion_reply_title( $title, $post ) {

	if ( bbp_get_topic_post_type() === get_post_type( $post->ID ) || bbp_get_reply_post_type() === get_post_type( $post->ID ) ) {
		$title = get_the_date('m/d/y', $post->ID ). ' - ' . esc_html__( wp_trim_words( wp_strip_all_tags( $post->post_content ), 8, '...' ), 'buddyboss' );
	}

	return $title;
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.