Support

Account

Home Forums General Issues Set current user as default in relational select field Reply To: Set current user as default in relational select field

  • There’s really no code to show you for this. So far, it’s all in the GUI. The select field is being used when the user is creating or editing a custom post type. The choices (users listed as editors) are being populated automatically because it’s a relational field.

    Is there something I can add to functions.php or someplace to set the default value for the editor field to the current user?