Add option to require profile photo in profile form

This commit is contained in:
Shramee Srivastav
2016-03-03 17:46:50 +05:30
parent d588cf14c9
commit a0dd04384e
3 changed files with 19 additions and 1 deletions
+6
View File
@@ -406,6 +406,12 @@
<?php do_action('um_after_header_meta', um_user('ID'), $args ); ?>
</div><div class="um-clear"></div>
<?php
if ( $ultimatemember->fields->is_error( 'profile_photo' ) ) {
echo $ultimatemember->fields->field_error( $ultimatemember->fields->show_error('profile_photo'), 'force_show' );
}
?>
<?php do_action('um_after_header_info', um_user('ID'), $args); ?>