REST alert when new WordPress post is published or updated
Use the HTTP API to send a “ping” on the wp_insert_post action, which is fired whenever a post is created/updated: /** * @param int $post_id The ID of the post. * @param WP_Post $post The post object. * @param bool $update True if the post already exists and is being updated */ function wpse_185340_post_ping( $post_id, … Read more