WPML Support
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘WPML Support’ is closed to new replies.