Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
facetwp add rel nofollow to pager
/** 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
You can’t perform that action at this time.