Can I use wp_query during a function run in wp-cron
-
I am working on some automation functions for a client and I’m running into issues trying to use a basic wp_query loop in my function. I’m getting this:
Fatal error: Uncaught Error: Call to undefined function get_userdata() in /app/public/wp-includes/class-wp-query.php on line 3975
Are there limitations to what parts of WP are loaded during wp-cron?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Can I use wp_query during a function run in wp-cron’ is closed to new replies.