About profile picture

I would like to require a profile picture instead of option (any).
How can I do this?

Please try this PHP snippet Make the profile image required for users #hivepress #users · GitHub

Thank you so much!

I can’t get rid of the optional (OPTION) text. How can I make it disappear?

This is a required field and I would like to make sure it does not appear as optional.

Please try this PHP snippet

	function( $errors, $form ) {
		$user = $form->get_model();

		if ( $user && ! $user->get_image__id() ) {
			$errors[] = 'Please upload the profile image.';

		return $errors;

	function( $form ) {
		$form['fields']['image']['statuses']['optional'] = null;

		return $form;

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.