xmlrpc_action

xmlrpc_action

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.8

do_action('xmlrpc_action') is found 1 times:

  • /wp-content/plugins/akismet/class.akismet.php line 1801
    1797
    1798
    1799
    1800
    1801
    1802
    1803
    1804
    1805
    1806
    1807
    * Check pingbacks for spam before they're saved to the DB.
     *
     * @param string           $method The XML-RPC method that was called.
     * @param array            $args This and the $server arg are marked as optional since plugins might still be
     *                               calling do_action( 'xmlrpc_action', [...] ) without the arguments that were added in WP 5.7.
     * @param wp_xmlrpc_server $server
     */
    public static function pre_check_pingback( $method, $args = array(), $server = null ) {
        if ( $method !== 'pingback.ping' ) {
            return;
        }