admin管理员组文章数量:1279207
I'm using an event plugin, which doesn't have a user-friendly function for showing a list of bookings. That's why I wrote a php+js script myself to display that data in a nice way. But to use my own script I need the booking data from the wp database.
The MEC-plugin gives me an option to export this booking data in csv format from the admin dashboard. But I want to use this export as a cronjob, but have the hardest time to get this to work.
I tried to use this export link (/wp-admin/admin.php?page=MEC-ix&tab=MEC-export&mec-ix-action=export-bookings&format=csv) as an url in my cronjob php but I always get the login page as a return.
Is there a method to run this cronjob from within WP as admin so I don't have to login anymore? Or do I need to figure out how to login with cURL to WP to make this cronjob work?
Or are there even better/easier methodes to do something like this?
Any help would be welcome!
本文标签: phpexport a csv file from the database with a cronjob
版权声明:本文标题:php - export a csv file from the database with a cronjob 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741295514a2370793.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论