get_post_types doesn’t work in plugin

I don’t think you’ll be able to get all the post types that are registered on init. (other plugins may register extra post types)

Can’t you hook into wp_loaded?

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