Tag: custom post type

You're working on a new project with WordPress. You enjoy yourself. You're confident in your abilities but then all of a sudden you realize you need a bunch of custom post types and the user is not allowed to edit the title to one of them but you need to find a way to auto-increment the title because that was a client request. So, you pull up the functions file, scratch your head and copy / paste the bellow snippet and hope for the best. // Use a filter to make the change add_filter( 'wp_insert_post_data' , 'modify_post_title'...

Continue reading »