akismet_https_disabled
Action HookDescription
Try SSL first; if that fails, try without it and don't try it again for a while.Hook Information
File Location |
wp-content/plugins/akismet/class.akismet.php
View on GitHub
|
Hook Type | Action |
Line Number | 1516 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into akismet_https_disabled
add_action('akismet_https_disabled', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-content/plugins/akismet/class.akismet.php:1516
- How this hook is used in WordPress core
<?php
1511
1512 if ( $ssl_failed ) {
1513 // The request failed when using SSL but succeeded without it. Disable SSL for future requests.
1514 update_option( 'akismet_ssl_disabled', time() );
1515
1516 do_action( 'akismet_https_disabled' );
1517 }
1518
1519 $simplified_response = array( $response['headers'], $response['body'] );
1520
1521 $alert_code_check_paths = array(
PHP Documentation
<?php
/**
* Try SSL first; if that fails, try without it and don't try it again for a while.
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-content/plugins/akismet/class.akismet.php
Related Hooks
Related hooks will be displayed here in future updates.