Hi, I want to know the action for when you click on the Publish button,
I got a custom post type for client's orders, so when I add an order, I want to send an email to my Client email with the data.
Hope you can help me, I really apreciate your time.
Thanks
Edit: I think the answer is
<?php
add_action('publish_post', 'my_custom_function');
?>
but how can I tell it, to send the email just when is the custom post "orders".