Step 4: Select the “Display On” Condition
From your “Display On” options in Astra’s Custom Layout Settings, choose:
- Posts > All Posts
This ensures the hook will only execute on single posts, which aligns with the requirement to send the webhook when a post is published.- If you need more granular targeting, you can use Specific Target to filter particular post types or categories.
Step 5: Finalize Hook and Save
- Action: Use
astra_entry_after
(or any preferred hook location). - Priority: Keep it
10
. - Custom Hook Name: Leave blank unless youāre calling a specific custom hook.
- Display On: Confirm it is set to All Posts.
- Save and Publish the hook.