appvipo dot comappvipo.hashnode.devยทMay 4, 2024Create new posts on Wordpress Site via REST API using PHP Code<?php // API URL for creating a new post $url = 'https://your_domain.com/wp-json/wp/v2/posts'; // Data for the new post $data = [ 'title' => 'Hello World', 'status' => 'publish', 'content' => 'This is the post content.', 'excerpt' => 'This is a short...1 likePHPAdd a thoughtful commentNo comments yetBe the first to start the conversation.