Description
The “pop_comments_join” filter is used modify the JOIN MySQL statement on for the comments results.
A plugin (or theme) can modify statement with the code:
<?php add_filter( 'pop_comments_join', 'filter_function_name' ); ?>
The hook is located in the popular-widget/_inc/functions.php file.
Example
// Apply filter function modify_pop_comments_join( $join, $instance ) { global $wpdb; return $join . " JOIN $wpdb->post p ON p.ID = tr.object_id"; } add_filter('pop_comments_join', 'modify_pop_comments_join');
Note: $join is a MySQL join statement string, $instance is a widget object.