Oh, I have got solution through a small research, I tried with the object $wpdb
and it worked 100% fine as it works in plugins. and the processes are the same as plugins.
Thanks to all who tried to answer my question.
Oh, I have got solution through a small research, I tried with the object $wpdb
and it worked 100% fine as it works in plugins. and the processes are the same as plugins.
Thanks to all who tried to answer my question.