Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is there a way to override some errors without hacking core files?


  • Kineta
    Participant

    @kineta

    I have been commenting out the error that disallows duplicate posts and replies:

    if ( !bbp_check_for_duplicate( array( 'post_type' => bbp_get_reply_post_type(), 'post_author' => $reply_author, 'post_content' => $reply_content, 'post_parent' => $topic_id, 'anonymous_data' => $anonymous_data ) ) )
    bbp_add_error( 'bbp_reply_duplicate', __( '<strong>ERROR</strong>: Duplicate reply detected; it looks as though you’ve already said that!', 'bbpress' ) );

    Obviously this isn’t ideal – everytime we upgrade I have to remember to do this. Is there any way to override this in my theme files?

    Thanks in advance.

  • You must be logged in to reply to this topic.
Skip to toolbar