bbp_is_reply_spam

  • apply_filters( 'bbp_is_reply_spam', bbp_get_spam_status_id() == $reply_status, $reply_id )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 724
       * @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
       * @return bool True if spam, false if not.
       */
      function bbp_is_reply_spam( $reply_id = 0 ) {
      	$reply_status = bbp_get_reply_status( bbp_get_reply_id( $reply_id ) );
      	return apply_filters( 'bbp_is_reply_spam', bbp_get_spam_status_id() == $reply_status, $reply_id );
      }
      
      /**
       * Is the reply trashed?
       *
       * @since bbPress (r2884)
       *
       * @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
      

Comments are closed.