bbp_get_reply_forum_id

  • apply_filters( 'bbp_get_reply_forum_id', (int) $forum_id, $reply_id )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 1215
      		// Check that reply_id is valid
      		if ( $reply_id = bbp_get_reply_id( $reply_id ) )
      
      			// Get forum_id from reply
      			if ( $forum_id = get_post_meta( $reply_id, '_bbp_forum_id', true ) )
      
      				// Validate the forum_id
      				$forum_id = bbp_get_forum_id( $forum_id );
      
      		return apply_filters( 'bbp_get_reply_forum_id', (int) $forum_id, $reply_id );
      	}
      
      /**
       * Output the numeric position of a reply within a topic
       *
       * @since bbPress (r2984)
       *
       * @param int $reply_id Optional. Reply id
       * @param int $topic_id Optional. Topic id
       * @uses bbp_get_reply_position() To get the reply position
      

Comments are closed.