Function to load a csv in a given path
-
Hello guys, if someone can, I need a bit of help because i’m stuck with a feature I’m trying to accomplish.
Long story short: I have a events-sample.csv with some data in it stored in wp_content/Uploads (wp_content/uploads/events-sample.csv) and i need to create a function in functions.php of my theme that loads this file (exactly how it happens in the wp-admin/admin.php?import=sp_event_csv page).
In this way I can call the function stored in functions.php via WP Crontrol without having to upload manually the same file with updated records.
I have triyed to look inside class-sp-event-importer.php but i cant figure out wich is the function I have to use.
Thanks in advance for the help 🙂
The topic ‘Function to load a csv in a given path’ is closed to new replies.