Home Support Extensions Authentication Remove option to Upload Profile Picture

Remove option to Upload Profile Picture

  • Author
    Posts
  • anesioneto

    Hi,

    I’m afraid of letting people uploading images that might harm my server. I’ve already used the snippet code suggested to remove the listing images but couldn’t find one to remove the upload image for the profile menu. Can you help me?

    Congrats for the theme, it’s awesome!

    ihor developer

    Thanks! If you have a minute, please rate it on WP.org https://wordpress.org/support/theme/listinghive/reviews/ It really helps to continue the development.

    Please try using this code snippet to remove the image uploader:

    add_filter(
    	'hivepress/v1/forms/user_update',
    	function( $form ) {
    		unset( $form['fields']['image'] );
    
    		return $form;
    	}
    );
    anesioneto

    Thanks @ihor!
    I´ll do the review soon!
    Once again, congrats!

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Remove option to Upload Profile Picture’ is closed to new replies.