0

I am testing following Wordpress XML-RPC PHP Client https://github.com/letrunghieu/wordpress-xmlrpc-client

I have 3 sites where I post remotely, however if the password on one site is wrong it gives Fatal error and stops the PHP execution, I want to catch this error and manage if one stops, it should exit and continue to post on other sites.. below is the error I get

Fatal error: Uncaught XML-RPC error: Incorrect username or password. (Code: 403) thrown in \WordpressClient.php on line 926

Is there anyway I can first authenticate login information and then proceed with the rest of the code, if it fails, it should simply exit the function and proceed with rest of the PHP code..

already explained at the top..

0 Answers0