Skip to content

Instantly share code, notes, and snippets.

@kraftbj
Created June 14, 2018 21:16
Show Gist options
  • Save kraftbj/f39f6e93a4e7e63934bb097bf7ccc525 to your computer and use it in GitHub Desktop.
Save kraftbj/f39f6e93a4e7e63934bb097bf7ccc525 to your computer and use it in GitHub Desktop.
Akismet filter privact notice
add_filter( 'akismet_comment_form_privacy_notice_markup', 'bk_custom_akismet_markup' );
function bk_custom_akismet_markup( $markup ) {
$markup = '<p class="akismet_comment_form_privacy_notice">' . sprintf(
__( 'This site uses Akismet to reduce spam. <a href="%s" target="_blank" rel="nofollow">Learn how your comment data is processed</a>.', 'akismet' ),
'https://akismet.com/privacy/'
) . '</p>';
return $markup;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment