Dynamic Custom Post Type Plugin

Instead of saving the CPT in the options table, try using register_post_type immediately when you submit the form, then display a success confirmation plus the empty form again. This will have two benefits – one being you’re not bloating the options table, the other being that you’ll immediately register the CPT and be able to submit the form with the next CPT immediately.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)