TEST HOOK

Step 4: Select the “Display On” Condition

From your “Display On” options in Astra’s Custom Layout Settings, choose:

  1. 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

  1. Action: Use astra_entry_after (or any preferred hook location).
  2. Priority: Keep it 10.
  3. Custom Hook Name: Leave blank unless youā€™re calling a specific custom hook.
  4. Display On: Confirm it is set to All Posts.
  5. Save and Publish the hook.
Scroll to Top