xmlrpc_action
Action HookDescription
Log debugging info to the error log. Enabled when WP_DEBUG_LOG is enabled (and WP_DEBUG, since according to core, "WP_DEBUG_DISPLAY and WP_DEBUG_LOG perform no function unless WP_DEBUG is true), but can be disabled via the akismet_debug_log filter.Hook Information
File Location |
wp-content/plugins/akismet/class.akismet.php
View on GitHub
|
Hook Type | Action |
Line Number | 1793 |
Hook Parameters
Type | Name | Description |
---|---|---|
mixed
|
$akismet_debug
|
The data to log. |
Usage Examples
Basic Usage
<?php
// Hook into xmlrpc_action
add_action('xmlrpc_action', 'my_custom_function', 10, 1);
function my_custom_function($akismet_debug) {
// Your custom code here
}
Source Code Context
wp-content/plugins/akismet/class.akismet.php:1793
- How this hook is used in WordPress core
<?php
1788 /**
1789 * Check pingbacks for spam before they're saved to the DB.
1790 *
1791 * @param string $method The XML-RPC method that was called.
1792 * @param array $args This and the $server arg are marked as optional since plugins might still be
1793 * calling do_action( 'xmlrpc_action', [...] ) without the arguments that were added in WP 5.7.
1794 * @param wp_xmlrpc_server $server
1795 */
1796 public static function pre_check_pingback( $method, $args = array(), $server = null ) {
1797 if ( $method !== 'pingback.ping' ) {
1798 return;
PHP Documentation
<?php
/**
* Log debugging info to the error log.
*
* Enabled when WP_DEBUG_LOG is enabled (and WP_DEBUG, since according to
* core, "WP_DEBUG_DISPLAY and WP_DEBUG_LOG perform no function unless
* WP_DEBUG is true), but can be disabled via the akismet_debug_log filter.
*
* @param mixed $akismet_debug The data to log.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-content/plugins/akismet/class.akismet.php
Related Hooks
Related hooks will be displayed here in future updates.