Attempting to work on wp_pagenavi filter function