auto_check_comment example


function akismet_get_comment_history( $comment_id ) {
    return Akismet::get_comment_history( $comment_id );
}
function akismet_cmp_time( $a$b ) {
    return Akismet::_cmp_time( $a$b );
}
function akismet_auto_check_update_meta( $id$comment ) {
    return Akismet::auto_check_update_meta( $id$comment );
}
function akismet_auto_check_comment( $commentdata ) {
    return Akismet::auto_check_comment( $commentdata );
}
function akismet_get_ip_address() {
    return Akismet::get_ip_address();
}
function akismet_cron_recheck() {
    return Akismet::cron_recheck();
}
function akismet_add_comment_nonce( $post_id ) {
    return Akismet::add_comment_nonce( $post_id );
}
function akismet_fix_scheduled_recheck() {
    

    public static function added_option( $option_name$value ) {
        if ( 'wordpress_api_key' === $option_name ) {
            return self::updated_option( '', $value );
        }
    }
    
    public static function rest_auto_check_comment( $commentdata ) {
        return self::auto_check_comment( $commentdata, 'rest_api' );
    }

    /** * Check a comment for spam. * * @param array $commentdata * @param string $context What kind of request triggered this comment check? Possible values are 'default', 'rest_api', and 'xml-rpc'. * @return array|WP_Error Either the $commentdata array with additional entries related to its spam status * or a WP_Error, if it's a REST API request and the comment should be discarded. */
    public static function auto_check_comment( $commentdata$context = 'default' ) {
        
Home | Imprint | This part of the site doesn't use cookies.