akismet_predefined_api_key
Filter HookDescription
Ensure that we are loading expected scalar values from akismet_as_submitted commentmeta.Hook Information
File Location |
wp-content/plugins/akismet/class.akismet.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1895 |
Hook Parameters
Type | Name | Description |
---|---|---|
mixed
|
$meta_value
|
No description available |
Usage Examples
Basic Usage
<?php
// Hook into akismet_predefined_api_key
add_filter('akismet_predefined_api_key', 'my_custom_filter', 10, 1);
function my_custom_filter($meta_value) {
// Your custom filtering logic here
return $meta_value;
}
Source Code Context
wp-content/plugins/akismet/class.akismet.php:1895
- How this hook is used in WordPress core
<?php
1890 public static function predefined_api_key() {
1891 if ( defined( 'WPCOM_API_KEY' ) ) {
1892 return true;
1893 }
1894
1895 return apply_filters( 'akismet_predefined_api_key', false );
1896 }
1897
1898 /**
1899 * Controls the display of a privacy related notice underneath the comment
1900 * form using the `akismet_comment_form_privacy_notice` option and filter
PHP Documentation
<?php
/**
* Ensure that we are loading expected scalar values from akismet_as_submitted commentmeta.
*
* @param mixed $meta_value
* @return mixed
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-content/plugins/akismet/class.akismet.php
Related Hooks
Related hooks will be displayed here in future updates.