In the Japanese server that I'm using, Lolipop, I am able to set cron to run the php file, "/wp-admin/admin-ajax.php" at whenever I want, which is good.
However, I don't understand the following part, "?action=wpamelia_api&call=/notifications/scheduled/send".
Am I supposed to add this in the "admin-ajax.php"??
cron is a Linux utility which schedules a command or script on your server to run automatically at a specified time and date. A cron job is the scheduled task itself. Cron jobs can be very useful to automate repetitive tasks like in our plugin for notifications.
Depending on the server, there are different configurations for it, which you can contact your hosting provider about, or you can check out one of the solutions for it on this link.
GET 'https://yourdomain.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send' > /dev/null
WP Crontrol plugin is the best option if you're not familiar with cron jobx. You can find more info about it, and detailed instructions on how to set it up in our FAQ section.
So, if you already read that, and still need some clarification here's some further info.
You copy only the URL from below a scheduled notification:
Then, go to Tools/Cron Events, and click on "Cron Schedules" tab. In it, add a 15 minute interval:
Then go back to "Cron Events" tab and click on "Add new":
Below it, select "PHP Cron event" radio button, and add the URL you copied from Amelia/Notifications in this form:
file_get_contents("yourURL");
Below it add the name, and set it to run a few minutes in the future, using the provided time format. So, if you're adding the cron event at 12:45 (local, current time), set it to run at 12:50; and then select the schedule you previously selected:
Click on Add Event, and that's it.
The cron runs every 15 minutes, and checks if there's an email to be sent. So, in Amelia Notifications, your scheduled notifications are set to run every day at a certain time. If you set that time to be 15:00 (for example), the emails will be sent when the cron runs after that time.
For example, there's an appointment booked for tomorrow, and it's currently 14:44 - the cron runs, but since it's not yet 15:00, it doesn't send anything. It runs again after 15 minutes, so at 14:59, but there are still no emails flagged by Amelia, so it doesn't send anything. Then it runs again at 15:14 and it sees there's an email that should've been sent at 15:00, so it sends the email. It will only send emails when Amelia sees an appointment scheduled for the next day.
Unfortunately, you cannot change the reminder. At the moment, it can only be sent one day before the appointment at a time you specified in the upper right corner of a scheduled notification.
Also, there's no way to exclude certain users from receiving reminder emails.
Our developers will work on notifications in the future, so hopefully these will be included also.
Hi,
I'm now trying to set automatic reminders by setting cron, but could you explain more about the line below please?
To send this notification please add the following line in your cron:
*/15 * * * * https://my-websitecom/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send
In the Japanese server that I'm using, Lolipop, I am able to set cron to run the php file, "/wp-admin/admin-ajax.php" at whenever I want, which is good.
However, I don't understand the following part, "?action=wpamelia_api&call=/notifications/scheduled/send".
Am I supposed to add this in the "admin-ajax.php"??
Thank you very much for your help.
Best,
Sho
Hello Sho
Thank you for your purchase.
cron is a Linux utility which schedules a command or script on your server to run automatically at a specified time and date. A cron job is the scheduled task itself. Cron jobs can be very useful to automate repetitive tasks like in our plugin for notifications.
Depending on the server, there are different configurations for it, which you can contact your hosting provider about, or you can check out one of the solutions for it on this link.
Also, you can try this:
*/15 * * * * wget -q -O - "https://www.yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send"
Or this:
*/15 * * * * /usr/local/bin/php ~/public_html/wp-cron.php --action='wpamelia_api' --call='/notifications/scheduled/send'
Or this:
GET 'https://yourdomain.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send' > /dev/null
WP Crontrol plugin is the best option if you're not familiar with cron jobx. You can find more info about it, and detailed instructions on how to set it up in our FAQ section.
So, if you already read that, and still need some clarification here's some further info.
You copy only the URL from below a scheduled notification:
Then, go to Tools/Cron Events, and click on "Cron Schedules" tab. In it, add a 15 minute interval:
Then go back to "Cron Events" tab and click on "Add new":
Below it, select "PHP Cron event" radio button, and add the URL you copied from Amelia/Notifications in this form:
Below it add the name, and set it to run a few minutes in the future, using the provided time format. So, if you're adding the cron event at 12:45 (local, current time), set it to run at 12:50; and then select the schedule you previously selected:
Click on Add Event, and that's it.
The cron runs every 15 minutes, and checks if there's an email to be sent. So, in Amelia Notifications, your scheduled notifications are set to run every day at a certain time. If you set that time to be 15:00 (for example), the emails will be sent when the cron runs after that time.
For example, there's an appointment booked for tomorrow, and it's currently 14:44 - the cron runs, but since it's not yet 15:00, it doesn't send anything. It runs again after 15 minutes, so at 14:59, but there are still no emails flagged by Amelia, so it doesn't send anything. Then it runs again at 15:14 and it sees there's an email that should've been sent at 15:00, so it sends the email. It will only send emails when Amelia sees an appointment scheduled for the next day.
I hope that helps.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar,
Thank you very much for your elaborate explanation!
I downloaded WP control and it worked with no problem. Thanks!
I have actually two questions related to this:
How can I send a remind email 30 mins before each appointment rather than 1 day before for all the next day appointments?
Also, is there a way to turn off the remind function for specific users if they don't want it? Like by setting their email somehow?
I really appreciate your help.
Best,
Sho
To make it clear, I'm making the website where people can book in the 30 min time slot like a hair salon.
So I'd like to remind each customer 30 mins before their appointments if possible.
Thanks!
Sho
Hi again Sho
Unfortunately, you cannot change the reminder. At the moment, it can only be sent one day before the appointment at a time you specified in the upper right corner of a scheduled notification.
Also, there's no way to exclude certain users from receiving reminder emails.
Our developers will work on notifications in the future, so hopefully these will be included also.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Okay, thanks Aleksandar.
Best,
Sho
You're welcome, Sho
Take care.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables