akismet_enable_mshots
Filter HookDescription
List of pages where activation banner should be displayed.Hook Information
File Location |
wp-content/plugins/akismet/class.akismet-admin.php
View on GitHub
|
Hook Type | Filter |
Line Number | 198 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into akismet_enable_mshots
add_filter('akismet_enable_mshots', 'my_custom_filter');
function my_custom_filter() {
// Your custom filtering logic here
return 'modified_value';
}
Source Code Context
wp-content/plugins/akismet/class.akismet-admin.php:198
- How this hook is used in WordPress core
<?php
193
194 if ( isset( $_GET['akismet_recheck'] ) && wp_verify_nonce( $_GET['akismet_recheck'], 'akismet_recheck' ) ) {
195 $inline_js['start_recheck'] = true;
196 }
197
198 if ( apply_filters( 'akismet_enable_mshots', true ) ) {
199 $inline_js['enable_mshots'] = true;
200 }
201
202 wp_localize_script( 'akismet.js', 'WPAkismet', $inline_js );
203 }
PHP Documentation
<?php
/**
* List of pages where activation banner should be displayed.
*
* @var array
*/
Quick Info
- Hook Type: Filter
- Parameters: 0
- File: wp-content/plugins/akismet/class.akismet-admin.php
Related Hooks
Related hooks will be displayed here in future updates.