• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Akismet::display_comment_form_privacy_notice() – Controls the display of a privacy related notice underneath the comment form using the `akismet_comment_form_privacy_notice` option and filter respectively.

You appear to be a bot. Output may be restricted

Description

Controls the display of a privacy related notice underneath the comment form using the akismet_comment_form_privacy_notice option and filter respectively.

Default is top not display the notice, leaving the choice to site admins, or integrators.

Usage

Akismet::display_comment_form_privacy_notice();

Parameters

Returns

void

Source

File name: akismet/class.akismet.php
Lines:

1 to 12 of 12
  public static function display_comment_form_privacy_notice() {
    if ( 'display' !== apply_filters( 'akismet_comment_form_privacy_notice', get_option( 'akismet_comment_form_privacy_notice', 'hide' ) ) ) {
      return;
    }
    echo apply_filters(
      'akismet_comment_form_privacy_notice_markup',
      '<p class="akismet_comment_form_privacy_notice">' . sprintf(
        __( 'This site uses Akismet to reduce spam. <a href="%s" target="_blank" rel="nofollow noopener">Learn how your comment data is processed</a>.', 'akismet' ),
        'https://akismet.com/privacy/'
      ) . '</p>'
    );
  }
 

 View on GitHub View on Trac

Published: 19th December 2019 | Last updated: 19th December 2019

Primary Sidebar

Information

Function name: Akismet::display_comment_form_privacy_notice
Class ref: Akismet
Plugin ref: Akismet
Version: 4.1.8
Sourcefile: class.akismet.php
File ref: class.akismet.php
Deprecated?: No
API Letters: A,C,D,F,P

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 5.6.2. PHP: 7.3.27
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wp-a2z.org
© Copyright WordPress a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites