UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

onAfterEasyBlogSave triggers twice after adding new post

Niranjan Deshpande · ·
5:49 PM Tuesday, 26 May 2015
None
Hi there,

I have created one easyblog plugin by using onAfterEasyBlogSave trigger and I have referred plg_easyblogautoarticle. My plugin calls API of my another site and does some stuff.

Plugin works fine when I update existing posts. But when I create new post, onAfterEasyBlogSave gets triggered twice. First with isNew=1 (add post) and then with isNew=0 (update post). This happens consecutively even though I am simply adding new post. That causes my API code to execute twice. :(

Is this a bug in easyblog or am I missing something?

Thank you in advance.
The replies under this section are restricted to logged in users or users with an active subscription with us