Add an action only for a specific user in a plugin

If you run get_current_user_id() too early, like you’re doing, it will just return 0.

Wrap your logic containing that function inside a hook, like init, or inside the rt_* callbacks, to avoid that.

Note that init fires right after current user setup and before admin_menu (src)

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