Add post status registering function