Hello
In the wpuf-add-post.php
SEARCH
//validate cat
if ( wpuf_get_option( 'allow_cats', 'wpuf_frontend_posting', 'on' ) == 'on' ) {
$cat_type = wpuf_get_option( 'cat_type', 'wpuf_frontend_posting', 'normal' );
if ( !isset( $_POST['category'] ) ) {
$errors[] = __( 'Bitte w?hle mindestens eine Kategorie!', 'wpuf' );
} else if ( $cat_type == 'normal' && $_POST['category'][0] == '-1' ) {
$errors[] = __( 'Bitte w?hle mindestens eine Kategorie!', 'wpuf' );
} else {
if ( count( $_POST['category'] ) < 1 ) {
$errors[] = __( 'Bitte w?hle mindestens eine Kategorie!', 'wpuf' );
}
}
}
After Add
//Begin Require an featured image upload
function my_featured_image_validation($errors) {
if ( empty($_POST['wpuf_featured_img']) ) {
$errors[] = __( 'Please upload a Image', 'wpuf' );
}
return $errors;
}
add_filter( 'wpuf_add_post_validation', 'my_featured_image_validation');
//End Require an featured image upload
SEARCH
<div id="wpuf-ft-upload-container">
BEVOR ADD
<span class="required">*</span></label>