Hello @qwik3r, @mariatogonon,
I hope you don’t mind me jumping in.
That’s a great question @qwik3r.
One idea is to have your popup “sleep” until a post goes from draft to publish. Have the popup “wake up” when a post goes from draft to publish. Then, have the popup go back to “sleep” after a week or so.
If you’re game and assuming you have your new post popup already created (hopefully, it’s a time delay popup), you can do the following:
1) Disable your new post popup first.
2) Write an action to hook into draft_top_publish
to re-enable your popup when a post goes from draft to publish state.
3) Write a cron to disable (reset) the popup after a certain length of time (e.g., weekly or monthly).
Here are examples of the hooks you’d need.
https://gist.github.com/marklchaves/2c08d4976fa54604352541302f7c2548
Shout if you have any questions ??
NOTE: Make sure your post is always saved as a draft first before it’s published.
P.S. If you come across any other ideas, please share.