Skip to content

picklingjar/Wordpress-XML-RPC-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress XML-RPC Library by The Pickling Jar Ltd

An ISC licensed PHP library for interacting with Wordpress with XML RPC.

Requires

http://phpxmlrpc.sourceforge.net/

Example

<?php
require('xmlrpc.inc');
require('Wordpress-XML-RPC-Library/get-pages.php');

$globalerr = null;

$xmlrpcurl = 'http://example.com/xmlrpc.php';
$username = 'admin';
$password = 'password';

$pages = wordpress_get_pages($xmlrpcurl, $username, $password);
if($pages == false){
    echo $globalerr."\n";
    die();
}
else {
    print_r($pages);   
}
?>

Proxies

Proxy format is username:password@ipaddress:port

Contributing

Patches & forks most welcome to complete the library and fix any bugs

About

A PHP library for interacting with Wordpress via XML-RPC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages