• Resolved luke1985

    (@luke1985)


    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 🙂

    • This topic was modified 3 years, 8 months ago by luke1985.
    • This topic was modified 3 years, 8 months ago by luke1985.
Viewing 1 replies (of 1 total)
  • Roch

    (@rochesterj)

    Hi there!

    Thanks for reaching out.

    That’s quite an interesting idea. But since this isn’t a current feature, we can’t help you with this via the support channel.

    I’ll leave this open though, in case other users have any ideas on how to implement this.

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Function to load a csv in a given path’ is closed to new replies.