Sending data from a WordPress post to a webhook upon post publication

Tiempo de lectura: 2 minutos Today we’re going to see how we can send data from WordPress to a webhook when a publication is made. The first thing we’ll do is install the plugin called Code Snippet, which allows us to add code. We are adding new code: add_action(‘transition_post_status’, ‘enviar_a_a_webhook’, 10, 3); function enviar_a_webhook($new_status, $old_status, $post) { // Verificar que … Read more