Support » Plugin: Basic User Avatars » [Hook request] Make the input:file required

  • Hello,

    I need to make the front input:file field required to avoid too quick submission by the users.

    In init.php I did something like that, waiting for your approval for this hook request. Line 332.

    $required = apply_filters( 'bua_is_input_file_required', false ) ? ' required' : '';
    echo '<p><input type="file" name="basic-user-avatar" id="basic-local-avatar"' . $required . ' /></p>';

    I think you should allow custom attributes here to improve your code, like the capture attribute and accept attribute.

    Thank you 🙂

    • This topic was modified 2 years, 11 months ago by Geoffrey.
  • The topic ‘[Hook request] Make the input:file required’ is closed to new replies.