Register a title automatically with a relationship field

If you can grab your data early enough you can do this:

function alter_title($t) {
  return 'altered-title';
}
add_filter('pre_post_title','alter_title');
add_filter('pre_post_name','alter_title');

That will change the title and the slug before the post is saved. Of course, you need to work out some logic for that function. As is, it changes all post/page/CPT names and slugs on both save and edit. Probably not what you want… 🙂

That should work. Your game data should be in $_POST. If for some reason it doesn’t you can run a function on save_post but you will need to push another write to the database.

There are a lot of hooks for post insert/edits so you may even find something more appropriate by browsing the source file.