We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Differentiate between entry_submission_end for new entries and Updated Entries

Development and Programming

blendimc's avatar
blendimc
150 posts
14 years ago
blendimc's avatar blendimc

I have a plugin that I want to be called on entry submission of New Entries but not Edit Entries. I have been using the entry_submission_end hook, but I’m not sure if there is anyway to know if its an update or a new entry. [This is on EE 2]

       
blendimc's avatar
blendimc
150 posts
14 years ago
blendimc's avatar blendimc

Figured it out. The Entry ID is not set in the DATA array that is passed to the hook. Just check to see if that is 0 and its a new entry.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.