Not a plugin, but this hack will do the job. Find the following lines around 659 in SubmitFunctions.php
PHP Code:
if (isset($submitted_data['submit_status'])) {
$h->post->status = $submitted_data['submit_status'];
} else {
$h->post->status = 'processing';
}
Add The following snippet just after those codes:
PHP Code:
$banned_status = 'processing'; // Define what to do with banned posts
if ( $h->post->status != $banned_status ) { // No need to check if post is already in the banned status
$banned_words = array( "sex","porn" ); // Add as many as banned words here. Lowercase only!
$words = explode( " ", strip_tags( strtolower( $submitted_data['submit_title'] . " " . $submitted_data['submit_content'] ) ) );
if ( is_array( $words ) ) {
$words = array_unique( array_filter( $words ) );
foreach ( $words as $word ) {
if ( in_array( $word, $banned_words ) ) {
$h->post->status = $banned_status; // Set post status to e.g "processing".
break; // Already found a banned word, no need to continue
}
}
}
}
Bookmarks