xmlrpc_login_error

xmlrpc_login_error

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('xmlrpc_login_error') is found 1 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 314
    			 *
    			 * @param IXR_Error $error The XML-RPC error message.
    			 * @param WP_Error  $user  WP_Error object.
    			 */
    			$this->error = apply_filters( 'xmlrpc_login_error', $this->error, $user );
    			return false;
    		}
    
    		wp_set_current_user( $user->ID );
    		return $user;
    	}