Skip to content

Instantly share code, notes, and snippets.

@djrmom
Created June 13, 2018 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djrmom/c14b62ab03a2587ebd642e93d5a717a5 to your computer and use it in GitHub Desktop.
Save djrmom/c14b62ab03a2587ebd642e93d5a717a5 to your computer and use it in GitHub Desktop.
facetwp add rel nofollow to pager
<?php
/** basic string replace to add nofollow to pager html **/
add_filter( 'facetwp_pager_html', function( $output, $params ) {
$output = str_replace( 'a class="facetwp-page', 'a rel="nofollow" class="facetwp-page', $output );
return $output;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment