I did created a cron job for a script in my wordpress site which is using a theme. When the script is called with cron it is not working fine. Some function which are in that script are not recognized, because script not see them and report them as undefined function.
Fatal error: Call to undefined function get_option()
Do i need to include something more, or how to make that script to run normally with cron job ?