akismet_comment_form_privacy_notice
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 | 1907 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into akismet_comment_form_privacy_notice
add_filter('akismet_comment_form_privacy_notice', '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:1907
- How this hook is used in WordPress core
<?php
1902 *
1903 * Default is to not display the notice, leaving the choice to site admins,
1904 * or integrators.
1905 */
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',
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.