• Resolved Anonymous User 20702716

    (@anonymized-20702716)


    I have expanded with Pods the wordpress “User” and added more fields. One field is a realtionship with option fields. With the available options “AAA” and “BBB”. How can I set “BBB” as default value so that it is automatically deposited in all Users where nothing has been selected yet?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    Unfortunately we don’t have support for the new user creation form on the WP Dashboard > Users > Add New screen. If we did, that default value would be used for the field shown on that add new screen.

    So at this point, if you have users that you want to backfill — there’s no way to do this unless you use SQL to do that yourself.

    I’m interested in adding a CLI tool that can bulk set value on fields for those objects that have no value set or just setting across all objects found.

    Sorry it’s not easier right now, this is something a lot of custom field plugins haven’t sorted themselves yet either.

    Thread Starter Anonymous User 20702716

    (@anonymized-20702716)

    Thank you for clarification!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Set default for relationship field’ is closed to new replies.