bbp_get_reply_topic_id

  • apply_filters( 'bbp_get_reply_topic_id', (int) $topic_id, $reply_id )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 1175
      		// Check that reply_id is valid
      		if ( $reply_id = bbp_get_reply_id( $reply_id ) )
      
      			// Get topic_id from reply
      			if ( $topic_id = get_post_meta( $reply_id, '_bbp_topic_id', true ) )
      
      				// Validate the topic_id
      				$topic_id = bbp_get_topic_id( $topic_id );
      
      		return apply_filters( 'bbp_get_reply_topic_id', (int) $topic_id, $reply_id );
      	}
      
      /**
       * Output the forum id a reply belongs to
       *
       * @since bbPress (r2679)
       *
       * @param int $reply_id Optional. Reply id
       * @uses bbp_get_reply_forum_id() To get the reply forum id
       */
      

Comments are closed.