Is there a way to have Wordpress email me whenever a Page or Post is Published?
|
There's a few plugins that handle email notifications, but they all seem to act like a subscription service for (all) WordPress users. To notify just you when a post or page is published, it's literally a few lines of code.
You can either drop this in your theme's |
|||
|
|
|
Sure, you will need to use appropriate Post Status Transition hook or hooks and |
|||
|
|
|
sha -- it answers the question by contributing the knowledge that the posted solution does not work in all instances. After 24 hours, I can update the knowledge I contributed. The solution at this location ( Notify admin when page is edited? ) works on the server where the solution posted above does not. To quote from the thread with the solution that works better in the two contexts I tried: The original script from the wpcodex works fine:
|
||||
|
|
