WP REST API version 2.0-beta7でwp/v2/mediaへ投稿できるようになりました。 (version 2.0-beta6では投稿処理が正常におこなわれませんでした。) Guzzle6を使い画像を投稿するサンプルです。 <?php /* * WP REST API version 2.0-beta7 * API base url is http://www.example.com/wp-json * * Reference * https://wordpress.org/support/topic/new-post-with-image */ /* * OAuth1設定済みのHTTP Client取得します。 * 例ではGuzzle6を利用することを前提としています。 */ $client = ... /* * $pathは画像の物理パスが格納されていることを前