Send POST request to WordPress to make a new post July 21, 2022 by Tarik Billa I would recommend using XML-RPC. You can find the documentation here. This is a more mature and secure approach than building your own functionality that already exists in core. You can find all of the methods for various operations here.