2017 © Pedro Peláez
 

library xml-rpc-wordpress-api

XML-RPC-WordPress-API

image

rolenweb/xml-rpc-wordpress-api

XML-RPC-WordPress-API

  • Friday, February 17, 2017
  • by rolenweb
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

xml-rpc-wordpress-api

https://codex.wordpress.org/XML-RPC_WordPress_API, (*1)

Usage

use Rolenweb\Wpapi\Wp;

$wp = new Wp('http://site/','login','password');

Create term:

$content = [
    'name' => 'name',
    'taxonomy' => 'post_tag',
    //'slug' => null,
    //'description' => null,
    //'parent' => null,
];
$wp->newTerm($content);

Create post:

$content = [
    'post_type' => 'post',
    'post_content' => null,
    'post_title' => 'title',
    'post_status' => 'publish',
    'ping_status' => 'closed',
    'custom_fields' => [
        [
            'key' => 'key',
            'value' => 'value'
        ],


    ],

];

$wp->newPost($contentMap);

The Versions

17/02 2017

dev-master

9999999-dev

XML-RPC-WordPress-API

  Sources   Download

MIT License

The Requires

  • php >=5.4.0

 

by Roman Khrustalev