akismet_webhook_received
Action HookDescription
Allow plugins to do things with a successfully processed webhook request, like logging.Hook Information
File Location |
wp-content/plugins/akismet/class.akismet-rest-api.php
View on GitHub
|
Hook Type | Action |
Line Number | 578 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_REST_Request
|
$request
|
The REST request object. |
Usage Examples
Basic Usage
<?php
// Hook into akismet_webhook_received
add_action('akismet_webhook_received', 'my_custom_function', 10, 1);
function my_custom_function($request) {
// Your custom code here
}
Source Code Context
wp-content/plugins/akismet/class.akismet-rest-api.php:578
- How this hook is used in WordPress core
<?php
573 *
574 * @since 5.3.2
575 *
576 * @param WP_REST_Request $request The REST request object.
577 */
578 do_action( 'akismet_webhook_received', $request );
579
580 Akismet::log( 'Done processing webhook.' );
581
582 return rest_ensure_response( $response );
583 }
PHP Documentation
<?php
/**
* Allow plugins to do things with a successfully processed webhook request, like logging.
*
* @since 5.3.2
*
* @param WP_REST_Request $request The REST request object.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-content/plugins/akismet/class.akismet-rest-api.php
Related Hooks
Related hooks will be displayed here in future updates.