프리미엄 WP 테마 플러그인 무료 다운로드

Reply To: bbpress로 만든 게시판입니다

질문 제출 Forums Reply To: bbpress로 만든 게시판입니다


Word Cracker
Keymaster

다음과 같은 함수를 사용하여 쉽게 수정이 가능합니다.

function bbp_get_topic_post_count_modified( $replies, $topic_id ) {
        $topic_id = bbp_get_topic_id( $topic_id );
        $replies  = (int) get_post_meta( $topic_id, '_bbp_reply_count', true );
        
        return $replies;
    }
add_filter( 'bbp_get_topic_post_count', 'bbp_get_topic_post_count_modified', 10, 2 );

참고: https://www.thewordcracker.com/intermediate/how-to-modify-the-number-of-replies-for-topics-in-bbpress-wordpress/