bbp_get_reply_id

  • apply_filters( 'bbp_get_reply_id', (int) $bbp_reply_id, $reply_id )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 268
      		// Fallback
      		else
      			$bbp_reply_id = 0;
      
      		// Check if current_reply_id is set, and check post_type if so
      		if ( !empty( $bbp->current_reply_id ) && ( bbp_get_reply_post_type() != get_post_field( 'post_type', $bbp_reply_id ) ) )
      			$bbp->current_reply_id = null;
      
      		return apply_filters( 'bbp_get_reply_id', (int) $bbp_reply_id, $reply_id );
      	}
      
      /**
       * Gets a reply
       *
       * @since bbPress (r2787)
       *
       * @param int|object $reply reply id or reply object
       * @param string $output Optional. OBJECT, ARRAY_A, or ARRAY_N. Default = OBJECT
       * @param string $filter Optional Sanitation filter. See {@link sanitize_post()}
      

Comments are closed.