Support » Plugin: Pods - Custom Content Types and Fields » New extender user field not showing in current user form

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jim True

    (@jimtrue)

    Pods has no control over the new user form. That is defined by WordPress and never shows user meta. If you want to override that, you need to use a plug-in that allows you to override the New User Form.

    What is the reason for giving to the developer an option to extend new fields for user registration if it cannot be accessed later?

    Plugin Author Jory Hogeveen

    (@keraweb)

    The new fields are added for users in WordPress admin, not the frontend (Eg, user registration).
    Like Jim already mentioned, the WordPress registration forms do not allow filters and additional user data to be parsed by default.
    You will need additional plugins for front-end form handling/changes. One example would be GravityForms which has a Pods addon.

    But I’m not talking about the user registration form, but the user admin form.
    Look, I created two telephone field to the current user table:
    https://i.imgur.com/CsaumDk.png
    https://i.imgur.com/tsJjSoe.png

    But in Admin->User->Add new user the new field are not appearing:
    https://i.imgur.com/DMYnky2.png

    Is it clearer now?

    The interesting thing is, when creating a new user in /wp-admin/user-new.php, those 2 new Pods fields are not shown (https://i.imgur.com/DMYnky2.png), however, when editing an existing user, for example /wp-admin/user-edit.php?user_id=12&wp_http_referer=%2Fwp-admin%2Fusers.php, in this form, those two field are correctly shown and editable (https://i.imgur.com/9feCGaA.png

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    We don’t have Pods fields shown in the user create form currently. Sorry for the confusion.

    And what’s the logic for this? You allow me to edit the fields in user-edit.php, but you don’t allow me to insert its values in user-new.php?
    Is there a reason? Or just a lack of development?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Creating/adding new users is different from editing/managing them.
    Just like WordPress core doesn’t allow you to input all user data at this page (there are more fields in WordPress core) Pods doesn’t either at this moment.

    Honestly I don’t even know if it’s possible for a plugin to hook into that page and add fields. We’ll have to look into that.
    You can add a feature request here: https://github.com/pods-framework/pods/issues/new?template=feature_request.md

    Cheers, Jory

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    I believe when I was adding this there were a few gotchas. I definitely want to add this but make it an optional thing. Not everyone wants those fields on the new user form.

    If you’d like to add the fields to the /wp-admin/user-new.php you can use this code which I confirmed works great:

    add_action( 'user_new_form', array( pods_meta(), 'meta_user' ) );

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.