Thread Starter
lore21
(@lore21)
Hi @ashfame thanks for reply.
I don’t know how to create a plugin, but I think I can put the code in a child functions.php file, right?
add_action('wp_insert_post', 'send_to_external_service', 10, 3);
function send_to_external_service($post_id, $post, $update)
{
{
// swagger API code
"identifier": "ipsum",
"destinationName": "laborum esse dolor ut quis",
"description": "exercitation et amet",
"language": "it",
"longitude": "in ",
"latitude": "cupidatat ex fugiat dolore",
"image": [
{
"imageLicense": "consequat qui cupidatat",
etc etc etc...
}
is it correct?
Thanks in advice