$client = new IXR_Client('');

I get the error

Fatal error: Class 'IXR_Client' not found in footer.php

I can see the class in wp-includes/class-IXR.php, and I've checked that the path to this file is correct in wp-includes/functions.php as per this discussion.

Am I missing something needed to use this class in my custom theme's footer?

  • 1
    Rob, give the answer an up-vote out of courtesy, please. – Eric Holmes Mar 20 '14 at 15:46
up vote 2 down vote accepted

You mean class-IRC.php or class-IXR.php?

Just include the files before you call IXR_Client. I use such code to call IXR_CLIENT and it worked on my site:

include_once( ABSPATH . WPINC . '/class-IXR.php' );
include_once( ABSPATH . WPINC . '/class-wp-http-ixr-client.php' );

$client = new WP_HTTP_IXR_CLIENT( '' );
  • 1
    Yes, meant class-IXR.php; works great! – rob-gordon Mar 20 '14 at 15:41

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.