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 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 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 order-#265.
You could hook it at
save_postand then update the database to reflect the change in title.Note that I didn’t test the code but it should be something like that: