bbp_is_reply_published

  • apply_filters( 'bbp_is_reply_published', bbp_get_public_status_id() == $reply_status, $reply_id )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 709
       * @since bbPress (r3496)
       *
       * @param int $reply_id Optional. Topic id
       * @uses bbp_get_reply_id() To get the reply id
       * @uses bbp_get_reply_status() To get the reply status
       * @return bool True if published, false if not.
       */
      function bbp_is_reply_published( $reply_id = 0 ) {
      	$reply_status = bbp_get_reply_status( bbp_get_reply_id( $reply_id ) );
      	return apply_filters( 'bbp_is_reply_published', bbp_get_public_status_id() == $reply_status, $reply_id );
      }
      
      /**
       * Is the reply marked as spam?
       *
       * @since bbPress (r2740)
       *
       * @param int $reply_id Optional. Reply id
       * @uses bbp_get_reply_id() To get the reply id
       * @uses bbp_get_reply_status() To get the reply status
      

Comments are closed.