Guest User

Untitled

a guest
Jan 17th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2.  
  3. require_once 'class-IXR.php';
  4. $rpc = new IXR_Client('http://localhost/wordpress/wordpress/xmlrpc.php');
  5.  
  6.  
  7.  
  8. $result = $rpc->query('pingback.extensions.getPingbacks','http://localhost/wordpress/wordpress/2018/01/17/hallo-welt/&post_type=something');
  9.  
  10. if(!$result) {
  11. echo 'Error [' . $rpc->getErrorCode() . ']: ' . $rpc->getErrorMessage();
  12.  
  13. }
  14.  
  15. var_dump($rpc->getResponse());
  16.  
  17.  
  18. ?>
  19.  
  20. Error [0]: array(2) { ["faultCode"]=> int(0) ["faultString"]=> string(0) "" }
Add Comment
Please, Sign In to add comment