[wp-hackers] possible permanent post and edit page modifications

Owen Winkler ringmaster at midnightcircus.com
Fri Jul 23 22:13:04 UTC 2004


> You could write a plugin that does some of this, but not all. 

I wrote the plugin that does per-post moderation.  You can set the
option for each post on the advanced-edit page, and the
Options->Discussion page has default options that are stored in the
database.

You can set it so that moderation for a post gets turned on
automatically when a post gets X days old (configure in Options).

Messages should be sent as defined by my plugin, not by the global
settings in WP.

No database changes are required, no WP core code modification are
required.  Drop it in and go.

If you want a message on the comments page about whether a post is
moderated or not, you can use is_moderated(), which returns true if the
post comments are moderated.  Like so:

<?php if(is_moderated()) {?><p>Comments are approved by the admin before
they appear here.</p><?php }?>

Interest?  Download file is here:
www.asymptomatic.net/wp-hacks/monoderate.zip

Owen







More information about the hackers mailing list