Import Cron job. Dated file path

[ad_1]

I have an import cron job using “Import and export users and customers” plugin, that reads data from csv that is uploaded to upload folder. The path it needs to read from:

/var/www/vhosts/sampradayamanjari.org/httpdocs/wp-content/uploads/2023/01/userdata.csv

Note the year/month in the path, it needs to be automatically changed to the current year/month, as we cant keep changing month-on-month. Any solutions to this? Thanks!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer