akismet_comment_form_privacy_notice_markup
Filter HookDescription
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 to not display the notice, leaving the choice to site admins, or integrators.Hook Information
File Location |
wp-content/plugins/akismet/class.akismet.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1911 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into akismet_comment_form_privacy_notice_markup
add_filter('akismet_comment_form_privacy_notice_markup', 'my_custom_filter');
function my_custom_filter() {
// Your custom filtering logic here
return 'modified_value';
}
Source Code Context
wp-content/plugins/akismet/class.akismet.php:1911
- How this hook is used in WordPress core
<?php
1906 public static function display_comment_form_privacy_notice() {
1907 if ( 'display' !== apply_filters( 'akismet_comment_form_privacy_notice', get_option( 'akismet_comment_form_privacy_notice', 'hide' ) ) ) {
1908 return;
1909 }
1910
1911 echo apply_filters(
1912 'akismet_comment_form_privacy_notice_markup',
1913 '<p class="akismet_comment_form_privacy_notice">' .
1914 wp_kses(
1915 sprintf(
1916 /* translators: %s: Akismet privacy URL */
PHP Documentation
<?php
/**
* 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 to not display the notice, leaving the choice to site admins,
* or integrators.
*/
Quick Info
- Hook Type: Filter
- Parameters: 0
- File: wp-content/plugins/akismet/class.akismet.php
Related Hooks
Related hooks will be displayed here in future updates.