I’m developing now a new plug-in that block commenting until user pay via PayPal.
In the admin panel I used function that collect data from the database by get_option().
When I call that function from the admin menu, it works fine.
But when using that function to collect the same data to use in PayPal API request, it returns an error “undefined function get_option()”.
Is there anyone can help?