What hook should I use if I want to trigger an event after post is published?

Solved7.39K viewsWordPress
0

I’m working on an extension and would like to confirm the correct hook for triggering an event after a post has been published? Curious about both question and answer custom post types.

0

Hello,

Is there any guide on how to extends these please? I need to make a curl request after new answer.

commented on answer

ok nvm I worked directly in hooks.php. There’s probably a better way but for now it works.

You are viewing 1 out of 3 answers, click here to view all answers.