function.php: function bwp_pages_link_filter