Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 1.22   Updated Wednesday, July 1st, 2009 at 8:20pm

Draft Notification Plugin for WordPress

This WordPress plugin automatically emails the admin when a new draft is saved. The email contains the post’s title, the author, and a link. There is no options page currently, because there is really nothing to configure. The plugin now supports the new ‘pending’ status.

Download

  If you have found this page useful, please consider donating. Thanks!

Instructions

  • Download the above file, rename it from .txt to .php, and upload it to your plugins directory.
  • Enable the plugin.

Change Log

  • 07-01-09 Version 1.22 – You can now choose to send the emails to all users on or above a certain level (eg: editors).
  • 04-27-08 Version 1.21 – Updated to work with WordPress 2.5 and the ‘pending’ status.
  • 05-16-07 Version 1.2 – Updated to work with WordPress 2.2.
  • 10-20-06 Version 1.1 – The emails now contain the author’s name, instead of ID.
  • 04-22-06 Version 1.0 – First release.

Notes

Because of the way this plugin works, it also sends out an email when an existing draft has been saved again – This includes auto-saves. A solution to this is being researched.

By default, the author’s display_name is shown in the email. If you would prefer to see the login_name, or nice_name field, just look for the line in the script that says “Choose one of the following options to show the author’s name” and uncomment the option you would like to use.

Changing the user level for notifications

In the script, look for this line:

$email_user_level = 7;

This tells the script to send notification emails to anyone on, or above, that user level. Just change this for your particular needs.

Pages: [7] 6 5 4 3 2 1 » Show All

  1. Ah well your comment! I did you good!HGJ

  2. Its interesting. I would like to know more about this…I really wanted to know how this works can you please help me out…….Thanks for sharing.ye3wdfyhr

  3. thanks for this plugin. this is what i’m looking for

  4. tell me a good way..

    ugg

  5. The SQL lookup (assuming the default level) is this: “SELECT user_id FROM usermeta WHERE usermeta.meta_value >= 7″. Isn’t something missing there? Lots of things can be put in the usermeta table, with meta_values all over the place. I get a long list of user_ids from that request, with many duplicates. Shouldn’t it include something like, “AND meta_key = ‘wp_user_level’”?

  6. Thank you for sharing them with us , I think it’s worth reading

  7. If did not have on luxury

  8. Marketing way side-by-side luxury goods

  9. Thank you for sharing them with us , I think it’s worth reading

  10. ?the pier at Gulfport precisely where riggings of shrimp boats are loose stitches

Pages: [7] 6 5 4 3 2 1 » Show All

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.