bbp_get_reply_spam_link

  • apply_filters( 'bbp_get_reply_spam_link', $link_before . '<a href="' . $uri . '">' . $display . '</a>' . $link_after, $args )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 1630
      		if ( empty( $reply ) || !current_user_can( 'moderate', $reply->ID ) )
      			return;
      
      		$display  = bbp_is_reply_spam( $reply->ID ) ? $unspam_text : $spam_text;
      
      		$uri = add_query_arg( array( 'action' => 'bbp_toggle_reply_spam', 'reply_id' => $reply->ID ) );
      		$uri = esc_url( wp_nonce_url( $uri, 'spam-reply_' . $reply->ID ) );
      
      		return apply_filters( 'bbp_get_reply_spam_link', $link_before . '<a href="' . $uri . '">' . $display . '</a>' . $link_after, $args );
      	}
      
      /**
       * Split topic link
       *
       * Output the split link of the topic (but is bundled with each topic)
       *
       * @since bbPress (r2756)
       *
       * @param mixed $args See {@link bbp_get_topic_split_link()}
      

Comments are closed.