• Resolved ibohorquez

    (@ibohorquez)


    Just FYI this fixes an issue where ability to answer by restricted role was not working:

    /*
    * overrides a Question/Answer plugin action to include missing parameter
    */
    remove_action( ‘qa_action_single_question_main’, ‘qa_action_answer_posting_function’, 0 );
    add_action( ‘qa_action_single_question_main’, ‘gtx_action_answer_posting_function’, 0 );

    if ( ! function_exists( ‘gtx_action_answer_posting_function’ ) ) {
    function gtx_action_answer_posting_function() {
    $qa_who_can_answer = get_option( ‘qa_who_can_answer’ );
    include( QA_PLUGIN_DIR. ‘templates/single-question/answer-posting.php’);
    }
    }

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘qa_who_can_answer’ is closed to new replies.