• Resolved pippijn

    (@pippijn)


    If you could replace lines 56-58 of note-finder-html.php, the plugin would also work on a website with WPML installed.

    if ( function_exists('icl_object_id') ) {
        global $sitepress;
        remove_filter( 'comments_clauses', array( $sitepress, 'comments_clauses' ), 10, 2 );
    }
    remove_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_order_comments' ), 10, 1 );
    $notes = get_comments( $args );
    add_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_order_comments' ), 10, 1 );
    if ( function_exists('icl_object_id') ) {
        add_filter( 'comments_clauses', array( $sitepress, 'comments_clauses' ), 10, 2 );
    }
Viewing 1 replies (of 1 total)
  • Plugin Support ospiotr

    (@ospiotr)

    Hi @pippijn

    Thank you SO much for your contribution!

    Great job. Please update the plugin to the version 1.3. I have tested and implemented your code.

    Take care.

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