Wordpress change post title before publish

admin

Administrator
Staff member
I am using wordpress 3.5, I create a custom post type called order with title supports only.
Now i want that when this order will publish the title text will be
Code:
order-#ID
, (here ID will be the post ID that going to be publish) nothing else if user write something in title it will not publish it just save with value like
Code:
order-#23
.

Another thing is any other way to hide title input (i don't wanna show title and editor) but save its value when it publish as like
Code:
order-#265
.