Support » Plugin: Easy Registration Forms » Image in User Meta

  • Resolved mysteryintime


    Is it possible to link a File Upload field to user meta? I don’t see the option in the form. If it’s currently not possible, maybe you could implement it by adding the image’s URL to User Meta. So I could use it like a shortcode:

    <img src='[image_field_name]' />

    Or maybe calling the field like this:

    $user_id = get_current_user_id ();
    $image_field_name = get_user_meta($user_id, 'image_field_name', true); 
    <img src="<?php echo $image_field_name; ?>">

    Then you can just add a post explaining the method in your blog.
    Maybe you could use this to overwrite the user’s standard image?

Viewing 1 replies (of 1 total)
  • Plugin Author easyregistrationforms



    Thank you for your valuable suggestion. We will include this in our future versions. Meanwhile I would suggest to you use our existing hook (‘erf_post_submission’) to customise this behaviour. Function with this action will get ‘submission’ array as function argument.

    Let me know if you have any questions.

Viewing 1 replies (of 1 total)
  • The topic ‘Image in User Meta’ is closed to new replies.